diff options
author | Jani Nikula <jani@nikula.org> | 2012-04-01 17:51:23 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-04-06 12:34:16 -0300 |
commit | 052000f85ae2e75efdf882a7fd15ef5698001c42 (patch) | |
tree | 47a4d08d286820428520e58a23deceec088d1805 /emacs/notmuch-hello.el | |
parent | 6acd61dad91cb1b5c43261a3c6cf7583ecf16f13 (diff) |
emacs: do not modify the alist passed to notmuch-sort-saved-searches
Sort modifies its input as a side effect. Pass it a copy in
notmuch-sort-saved-searches to not modify the notmuch-saved-searches
alist.
Diffstat (limited to 'emacs/notmuch-hello.el')
-rw-r--r-- | emacs/notmuch-hello.el | 2 |
1 files changed, 1 insertions, 1 deletions
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. |