emacs: Make saving new saved searches append, not prepend
authorJani Nikula <jani@nikula.org>
Fri, 23 Sep 2011 18:57:38 +0000 (21:57 +0300)
committerDavid Bremner <bremner@debian.org>
Wed, 23 Nov 2011 02:55:15 +0000 (22:55 -0400)
Append new saved searches at the end of saved searches rather than insert
in front.

Signed-off-by: Jani Nikula <jani@nikula.org>
emacs/notmuch-hello.el

index 917ad3bbe4e8ea45a8f52790021bee661842514a..0582cae76f492fc1ab349ab4458e889b2ea576ae 100644 (file)
@@ -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)))