unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Sort saved searches
@ 2011-09-02 12:28 Jani Nikula
  2011-09-02 15:02 ` Adam Wolfe Gordon
  2011-09-03 11:56 ` Tomi Ollila
  0 siblings, 2 replies; 12+ messages in thread
From: Jani Nikula @ 2011-09-02 12:28 UTC (permalink / raw)
  To: notmuch

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 <jani@nikula.org>
---
 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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-07 15:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-02 12:28 [PATCH] emacs: Sort saved searches Jani Nikula
2011-09-02 15:02 ` Adam Wolfe Gordon
2011-09-03 11:56 ` Tomi Ollila
2011-09-03 22:02   ` Jani Nikula
2011-09-04  7:57     ` Jameson Graef Rollins
2011-09-04 18:21       ` Jani Nikula
2011-09-05  2:22         ` Antono Vasiljev
2011-09-06 15:23         ` Adam Wolfe Gordon
2011-09-07  8:01           ` [PATCH v2 0/2] sort saved searches, again Jani Nikula
2011-09-07  8:01             ` [PATCH v2 1/2] emacs: Add new customization option to sort saved searches Jani Nikula
2011-09-07  8:01             ` [PATCH v2 2/2] emacs: Make saving new saved searches append, not prepend Jani Nikula
2011-09-07 15:53             ` [PATCH v2 0/2] sort saved searches, again Adam Wolfe Gordon

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).