patch: notmuch-mua.el -- message-hidden-headers
Tomi Ollila
tomi.ollila at iki.fi
Wed Jul 27 13:51:02 PDT 2011
Hi
As of 2011-07-27 ,the function notmuch-mua-add-more-hidden-headers
will fail to work (or the file to byte-compile) on emacs 22.2.1.
On emacs 23.2.1 the evaluation of (member header 'message-hidden-headers)
will always return 'nil'. examples (on emacs 22.2.1 scratch buffer):
(setq foo (list "x" "foo" "bar"))
(member "foo" 'foo)
backtrace buffer appears with content:
Debugger entered--Lisp error: (wrong-type-argument listp foo)
member("foo" foo)
eval((member "foo" (quote foo)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
(member "foo" foo)
on mimibuffer: ("foo" "bar)
patch to fix this:
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))
More information about the notmuch
mailing list