From: Jani Nikula Date: Fri, 23 Sep 2011 18:57:38 +0000 (+0300) Subject: emacs: Make saving new saved searches append, not prepend X-Git-Tag: 0.11_rc1~114 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=a467c5f071a1a730adc2bd84635dfc608c26ace9;ds=sidebyside 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 --- diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 917ad3bb..0582cae7 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)))