X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-hello.el;h=6b4b2c14de5cd16fc1a2c74da4f199c228ea19e7;hb=052000f85ae2e75efdf882a7fd15ef5698001c42;hp=28f39f19a8cb4724642e51b522d2b64282139510;hpb=6acd61dad91cb1b5c43261a3c6cf7583ecf16f13;p=notmuch diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 28f39f19..6b4b2c14 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -41,7 +41,7 @@ (defun notmuch-sort-saved-searches (alist) "Generate an alphabetically sorted saved searches alist." - (sort alist (lambda (a b) (string< (car a) (car b))))) + (sort (copy-sequence alist) (lambda (a b) (string< (car a) (car b))))) (defcustom notmuch-saved-search-sort-function nil "Function used to sort the saved searches for the notmuch-hello view.