mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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.
This commit is contained in:
parent
6acd61dad9
commit
052000f85a
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
(defun notmuch-sort-saved-searches (alist)
|
(defun notmuch-sort-saved-searches (alist)
|
||||||
"Generate an alphabetically sorted 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
|
(defcustom notmuch-saved-search-sort-function nil
|
||||||
"Function used to sort the saved searches for the notmuch-hello view.
|
"Function used to sort the saved searches for the notmuch-hello view.
|
||||||
|
|
Loading…
Reference in a new issue