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 280F3429E21 for ; Sat, 3 Sep 2011 04:56:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 Jfvee5in6GxX for ; Sat, 3 Sep 2011 04:56:16 -0700 (PDT) Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id F29CE431FD0 for ; Sat, 3 Sep 2011 04:56:15 -0700 (PDT) Received: from taco2.nixu.fi (localhost [127.0.0.1]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p83BuAWg018218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 3 Sep 2011 14:56:10 +0300 Received: (from too@localhost) by taco2.nixu.fi (8.14.3/8.14.3/Submit) id p83Bu9ZJ018217; Sat, 3 Sep 2011 14:56:09 +0300 X-Authentication-Warning: taco2.nixu.fi: too set sender to tomi.ollila@nixu.com using -f From: Tomi Ollila To: Jani Nikula Subject: Re: [PATCH] emacs: Sort saved searches References: <1314966486-20708-1-git-send-email-jani@nikula.org> X-Face: HhBM'cA~ (Jani Nikula's message of "Fri, 2 Sep 2011 12:28:06 +0000") Message-ID: User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Cc: notmuch@notmuchmail.org 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: Sat, 03 Sep 2011 11:56:17 -0000 On Fri 02 Sep 2011 15:28, Jani Nikula writes: > Display saved searches sorted, like tags are displayed. > > This only affects the display of the saved searches, not the order in which > they are stored in .emacs. > > Signed-off-by: Jani Nikula > --- Fun! I reveresed the sorting order so I got 'unread' first ;). Well, I prefer to sort the value of the (customizable) variable 'notmuch-saved-searches' myself (unless there is another variable which also provides 'saved searches' into notmuch-hello buffer)... Tomi > emacs/notmuch-hello.el | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el > index 65fde75..13758e5 100644 > --- a/emacs/notmuch-hello.el > +++ b/emacs/notmuch-hello.el > @@ -440,6 +440,9 @@ Complete list of currently available key bindings: > (widest (max saved-widest alltags-widest))) > > (when saved-alist > + ;; Sort saved searches. > + (setq saved-alist > + (sort saved-alist (lambda (a b) (string< (car a) (car b))))) > (widget-insert "\nSaved searches: ") > (widget-create 'push-button > :notify (lambda (&rest ignore) > -- > 1.7.1