emacs: Make saving new saved searches append, not prepend

Append new saved searches at the end of saved searches rather than insert
in front.

Signed-off-by: Jani Nikula <jani@nikula.org>
This commit is contained in:
Jani Nikula 2011-09-23 21:57:38 +03:00 committed by David Bremner
parent e312705d20
commit a467c5f071

View 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)))