From: David Edmondson <dme@dme.org>
To: notmuch@notmuchmail.org
Subject: [PATCH 3/3] emacs: Add a search to the 'recent searches' list once only
Date: Mon, 26 Apr 2010 10:25:30 +0100 [thread overview]
Message-ID: <1272273930-30997-3-git-send-email-dme@dme.org> (raw)
In-Reply-To: <87iq7i2aia.fsf@yoom.home.cworth.org>
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 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)
--
1.7.0
next prev parent reply other threads:[~2010-04-26 9:25 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 20:32 Opening the merge window for 0.3 Carl Worth
2010-04-22 1:11 ` Update on 0.3 progress Carl Worth
2010-04-22 2:49 ` Dirk Hohndel
2010-04-22 6:10 ` Jesse Rosenthal
2010-04-22 8:27 ` [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch David Edmondson
2010-04-23 20:13 ` Carl Worth
2010-04-23 22:49 ` Carl Worth
2010-04-24 12:31 ` Ideas for making notmuch-hello easier to navigate Carl Worth
2010-04-26 9:25 ` [PATCH 1/3] emacs: Adapt the logo background colour to that of the frame David Edmondson
2010-04-26 9:25 ` [PATCH 2/3] emacs: Remove the accelerator keys from the hello buffer David Edmondson
2010-04-26 9:25 ` David Edmondson [this message]
2010-04-26 9:36 ` [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch David Edmondson
2010-04-26 14:59 ` Carl Worth
2010-04-26 17:16 ` Carl Worth
2010-04-26 17:38 ` Jameson Rollins
2010-04-26 18:03 ` David Edmondson
2010-04-26 18:38 ` Carl Worth
2010-04-26 15:07 ` David Edmondson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1272273930-30997-3-git-send-email-dme@dme.org \
--to=dme@dme.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).