emacs: Add `notmuch-show-always-show-subject', allowing control over

the display of collapsed messages.

Signed-off-by: Jameson Rollins <jrollins@finestructure.net>
This commit is contained in:
David Edmondson 2010-05-18 09:36:58 +01:00 committed by Carl Worth
parent f3384a322e
commit 8ab4336074

View file

@ -64,6 +64,11 @@ any given message."
:group 'notmuch :group 'notmuch
:type 'boolean) :type 'boolean)
(defcustom notmuch-show-always-show-subject t
"Should a collapsed message show the `Subject:' line?"
:group 'notmuch
:type 'boolean)
(defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers) (defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers)
"A list of functions called to decorate the headers listed in "A list of functions called to decorate the headers listed in
`notmuch-message-headers'.") `notmuch-message-headers'.")
@ -621,8 +626,9 @@ current buffer, if possible."
;; If the subject of this message is the same as that of the ;; If the subject of this message is the same as that of the
;; previous message, don't display it when this message is ;; previous message, don't display it when this message is
;; collapsed. ;; collapsed.
(when (not (string= notmuch-show-previous-subject (when (or notmuch-show-always-show-subject
bare-subject)) (not (string= notmuch-show-previous-subject
bare-subject)))
(forward-line 1)) (forward-line 1))
(setq headers-start (point-marker))) (setq headers-start (point-marker)))
(setq headers-end (point-marker)) (setq headers-end (point-marker))