diff options
author | David Edmondson <dme@dme.org> | 2012-02-08 08:02:19 +0000 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-02-12 11:58:21 -0500 |
commit | 668b66ec85a649255441f8ab1a6ee5baa680b4e4 (patch) | |
tree | 8469b4e64b78583d133e2b22ecdbb5d775436183 /emacs | |
parent | 866ce8b132c4b1e912f21a8b054f839f53281dde (diff) |
emacs: A prefix argument to `notmuch-show' should invert the matching message behaviour.
Allow the user to open a thread with inverted
`notmuch-show-only-matching-messages' behaviour using a prefix
argument.
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/notmuch-show.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 7ffa1ed1..284e9cd1 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1038,8 +1038,11 @@ function is used." ;; buffer. (setq notmuch-show-process-crypto notmuch-crypto-process-mime) ;; Set the default value for - ;; `notmuch-show-elide-non-matching-messages' in this buffer. + ;; `notmuch-show-elide-non-matching-messages' in this buffer. If + ;; there is a prefix argument, invert the default. (setq notmuch-show-elide-non-matching-messages notmuch-show-only-matching-messages) + (if current-prefix-arg + (setq notmuch-show-elide-non-matching-messages (not notmuch-show-elide-non-matching-messages))) (setq notmuch-show-thread-id thread-id notmuch-show-parent-buffer parent-buffer |