Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8E5CD4196F2 for ; Mon, 26 Apr 2010 02:36:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FcO8LLk8yI98 for ; Mon, 26 Apr 2010 02:36:55 -0700 (PDT) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by olra.theworths.org (Postfix) with ESMTP id CCE5D431FC1 for ; Mon, 26 Apr 2010 02:36:54 -0700 (PDT) Received: by wwi18 with SMTP id 18so283703wwi.26 for ; Mon, 26 Apr 2010 02:36:54 -0700 (PDT) Received: by 10.216.86.82 with SMTP id v60mr2960wee.180.1272274579884; Mon, 26 Apr 2010 02:36:19 -0700 (PDT) Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id x1sm20474253wbx.13.2010.04.26.02.36.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 02:36:18 -0700 (PDT) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id 7DBB7594135; Mon, 26 Apr 2010 10:36:28 +0100 (BST) To: Carl Worth , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch In-Reply-To: <87iq7i2aia.fsf@yoom.home.cworth.org> References: <87y6gguw99.fsf@yoom.home.cworth.org> <1271924853-8183-1-git-send-email-dme@dme.org> <87iq7i2aia.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.2-187-g7c5f017 (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Mon, 26 Apr 2010 10:36:28 +0100 Message-ID: <87ljcaimhv.fsf@ut.hh.sledj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2010 09:36:56 -0000 On Fri, 23 Apr 2010 13:13:01 -0700, Carl Worth wrote: > * This should be integrated such that (require 'notmuch) provides the > notmuch-hello functionality. That's our documented access point for > getting at notmuch functionality. I'll do this, but I wonder if it is actually good advice. It causes notmuch.el (and anything that requires) to be loaded immediately. This will typically happen before any of a users' customisation settings are loaded (as `custom-set-variables', etc. generally happens right at the bottom of .emacs). A result of this is that notmuch can't use any of the customisation settings to adapt its' behaviour at load time. A example is (about which more lower down): > * I would *love* a simple way to import my existing notmuch-folder > configuration into notmuch-hello. Bonus points if this happens > automatically. notmuch-hello.el has: (defcustom notmuch-hello-saved-searches notmuch-folders "A list of saved searches to display." :type '(alist :key-type string :value-type string) :group 'notmuch) So if `notmuch-folders' is set before notmuch-hello.el is loaded, you get some saved-searches copied from your folders (but this won't override any specific settings you made for `notmuch-hello-saved-searches'). Relying on the order in general is bad (cf. `notmuch-search-authors-width'), but it can allow us to provide some useful functionality. If we don't want users to "(require 'notmuch)" we'd probably have to suggest one or more autoloads - perhaps even provide a file with a bunch of autoloads in it. Oh, or "(require 'notmuch)" should just load something that has the autoloads (d'oh!) and some `define-mail-user-agent' goop so that `compose-mail' does the right thing. I'll try to produce a patch for this last thing. > * The logo background is gray on my white-background emacs. That > looks odd. Patch sent. > * It would be great if point were in the search bar right when this > mode started. This is customisable, and I see that you changed the default ;-) > * I'd like the saved searches to appear before the recent searches I > think. Did you come to any conclusion about this? > * I'm not sure how useful the numbered shortcuts are for the recent > searches. We want to encourage people to move to saved searches > instead, (and the recent searches are quite transient anyway). So do > we really need these? [I mistook them for message counts at > first.] Patch sent which removes them. > * Repeating a recent search by pressing RET on it creates a new > identical search which doesn't seem all that useful. Patch sent. > * I would *love* a simple way to import my existing notmuch-folder > configuration into notmuch-hello. Bonus points if this happens > automatically. We could have `notmuch-hello' use `notmuch-folders' if `notmuch-hello-saved-searches' is `nil'. Would that help? > Finally, I'm quite inclined to make `notmuch' invoke this mode, so > think about that. It seems straightforward, I'll produce a patch. dme. -- David Edmondson, http://dme.org