1 Return-Path: <tomi.ollila@nixu.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 280F3429E21
\r
6 for <notmuch@notmuchmail.org>; Sat, 3 Sep 2011 04:56:17 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id Jfvee5in6GxX for <notmuch@notmuchmail.org>;
\r
16 Sat, 3 Sep 2011 04:56:16 -0700 (PDT)
\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id F29CE431FD0
\r
21 for <notmuch@notmuchmail.org>; Sat, 3 Sep 2011 04:56:15 -0700 (PDT)
\r
22 Received: from taco2.nixu.fi (localhost [127.0.0.1])
\r
23 by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
\r
25 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
\r
26 Sat, 3 Sep 2011 14:56:10 +0300
\r
27 Received: (from too@localhost)
\r
28 by taco2.nixu.fi (8.14.3/8.14.3/Submit) id p83Bu9ZJ018217;
\r
29 Sat, 3 Sep 2011 14:56:09 +0300
\r
30 X-Authentication-Warning: taco2.nixu.fi: too set sender to
\r
31 tomi.ollila@nixu.com using -f
\r
32 From: Tomi Ollila <tomi.ollila@nixu.com>
\r
33 To: Jani Nikula <jani@nikula.org>
\r
34 Subject: Re: [PATCH] emacs: Sort saved searches
\r
35 References: <1314966486-20708-1-git-send-email-jani@nikula.org>
\r
36 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
37 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
38 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
39 Date: Sat, 03 Sep 2011 14:56:09 +0300
\r
40 In-Reply-To: <1314966486-20708-1-git-send-email-jani@nikula.org> (Jani
\r
41 Nikula's message of "Fri, 2 Sep 2011 12:28:06 +0000")
\r
42 Message-ID: <yf61uvx261y.fsf@taco2.nixu.fi>
\r
43 User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/22.2 (gnu/linux)
\r
45 Content-Type: text/plain
\r
46 Cc: notmuch@notmuchmail.org
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Sat, 03 Sep 2011 11:56:17 -0000
\r
61 On Fri 02 Sep 2011 15:28, Jani Nikula <jani@nikula.org> writes:
\r
63 > Display saved searches sorted, like tags are displayed.
\r
65 > This only affects the display of the saved searches, not the order in which
\r
66 > they are stored in .emacs.
\r
68 > Signed-off-by: Jani Nikula <jani@nikula.org>
\r
71 Fun! I reveresed the sorting order so I got 'unread' first ;). Well, I
\r
72 prefer to sort the value of the (customizable) variable
\r
73 'notmuch-saved-searches' myself (unless there is another variable which
\r
74 also provides 'saved searches' into notmuch-hello buffer)...
\r
78 > emacs/notmuch-hello.el | 3 +++
\r
79 > 1 files changed, 3 insertions(+), 0 deletions(-)
\r
81 > diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
82 > index 65fde75..13758e5 100644
\r
83 > --- a/emacs/notmuch-hello.el
\r
84 > +++ b/emacs/notmuch-hello.el
\r
85 > @@ -440,6 +440,9 @@ Complete list of currently available key bindings:
\r
86 > (widest (max saved-widest alltags-widest)))
\r
89 > + ;; Sort saved searches.
\r
90 > + (setq saved-alist
\r
91 > + (sort saved-alist (lambda (a b) (string< (car a) (car b)))))
\r
92 > (widget-insert "\nSaved searches: ")
\r
93 > (widget-create 'push-button
\r
94 > :notify (lambda (&rest ignore)
\r