From a9bf967e71cca6eb220063ee50b94a7601bc2b96 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Mon, 26 Apr 2010 10:25:30 +0100 Subject: 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'. --- emacs/notmuch-hello.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs') 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) -- cgit v1.2.3