[PATCH v2 2/2] emacs: Make saving new saved searches append, not prepend
Jani Nikula
jani at nikula.org
Wed Sep 7 01:01:28 PDT 2011
Append new saved searches at the end of saved searches rather than insert
in front.
Signed-off-by: Jani Nikula <jani at nikula.org>
---
emacs/notmuch-hello.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 6c8e265..dc34ebe 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -188,8 +188,8 @@ Typically \",\" in the US and UK and \".\" in Europe."
collect elem))
;; Add the new one.
(customize-save-variable 'notmuch-saved-searches
- (push (cons name search)
- notmuch-saved-searches))
+ (add-to-list 'notmuch-saved-searches
+ (cons name search) t))
(message "Saved '%s' as '%s'." search name)
(notmuch-hello-update)))
--
1.7.1
More information about the notmuch
mailing list