aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorDavid Edmondson <dme@dme.org>2010-04-26 10:25:30 +0100
committerCarl Worth <cworth@cworth.org>2010-04-26 07:31:26 -0700
commita9bf967e71cca6eb220063ee50b94a7601bc2b96 (patch)
tree1197ea6c0306f52047a9051d64cf9211db711c79 /emacs
parentd6dea895884cdcb356f774197cdb9f7f8e2b5188 (diff)
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'.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-hello.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 52f162a..30b3a5e 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -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)