mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
emacs: Add a search to the 'recent searches' list once only
Avoiding adding the same search string to the 'recent searches' list more than once by testing whether the string was already used with `member' rather than `memq'.
This commit is contained in:
parent
d6dea89588
commit
a9bf967e71
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ field."
|
|||
(defvar notmuch-hello-recent-searches nil)
|
||||
|
||||
(defun notmuch-hello-remember-search (search)
|
||||
(if (not (memq search notmuch-hello-recent-searches))
|
||||
(if (not (member search notmuch-hello-recent-searches))
|
||||
(push search notmuch-hello-recent-searches))
|
||||
(if (> (length notmuch-hello-recent-searches)
|
||||
notmuch-hello-recent-searches-max)
|
||||
|
|
Loading…
Reference in a new issue