aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Ollila <tomi.ollila@iki.fi>2011-08-22 14:59:02 +0300
committerDavid Bremner <bremner@debian.org>2011-08-25 09:08:04 -0300
commit8e2a14bbbb5c423614a2f5992d756674ece5bedb (patch)
tree3db60bf0bed5a9c8a5cba1b56dce33b4196edb32
parent5dc189c82df35bafa54766fc8747ab46be8a9311 (diff)
fix checking whether header is member of message-hidden-headers
Emacs lisp function 'member' takes element and list as an argument. I.e. the second argument is list, not symbol referencing the list. On emacs 23.x the member call always returned nil (thus buggy), on emacs 22.x the call failed, making it unusable.
-rw-r--r--emacs/notmuch-mua.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 274c5da..8824b08 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -65,7 +65,7 @@ list."
(defun notmuch-mua-add-more-hidden-headers ()
"Add some headers to the list that are hidden by default."
(mapc (lambda (header)
- (when (not (member header 'message-hidden-headers))
+ (when (not (member header message-hidden-headers))
(push header message-hidden-headers)))
notmuch-mua-hidden-headers))