mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
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.
This commit is contained in:
parent
866ce8b132
commit
668b66ec85
1 changed files with 4 additions and 1 deletions
|
@ -1038,8 +1038,11 @@ function is used."
|
||||||
;; buffer.
|
;; buffer.
|
||||||
(setq notmuch-show-process-crypto notmuch-crypto-process-mime)
|
(setq notmuch-show-process-crypto notmuch-crypto-process-mime)
|
||||||
;; Set the default value for
|
;; 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)
|
(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
|
(setq notmuch-show-thread-id thread-id
|
||||||
notmuch-show-parent-buffer parent-buffer
|
notmuch-show-parent-buffer parent-buffer
|
||||||
|
|
Loading…
Reference in a new issue