diff options
author | David Edmondson <dme@dme.org> | 2010-05-19 10:41:08 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-18 16:11:53 -0700 |
commit | 4f04d2734f5e6a765aac05dbb205565774782123 (patch) | |
tree | fc70e560fd70cda0764c84f1511c130c69c5e9c9 /emacs | |
parent | 8ab43360740a1732c7606adf1c8c913fa8813851 (diff) |
emacs: Add custom `notmuch-show-elide-same-subject'
This controls the appearance of collapsed messages in notmuch-show
mode, avoiding redundancy for repeated subject).
Remove `notmuch-show-always-show-subject'.
Signed-off-by: Jameson Rollins <jrollins@finestructure.net>
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/notmuch-show.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 2ce3ebf8..9c174e25 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -64,6 +64,12 @@ any given message." :group 'notmuch :type 'boolean) +(defcustom notmuch-show-elide-same-subject nil + "Do not show the subject of a collapsed message if it is the +same as that of the previous message." + :group 'notmuch + :type 'boolean) + (defcustom notmuch-show-always-show-subject t "Should a collapsed message show the `Subject:' line?" :group 'notmuch @@ -626,9 +632,9 @@ current buffer, if possible." ;; If the subject of this message is the same as that of the ;; previous message, don't display it when this message is ;; collapsed. - (when (or notmuch-show-always-show-subject - (not (string= notmuch-show-previous-subject - bare-subject))) + (when (and notmuch-show-elide-same-subject + (not (string= notmuch-show-previous-subject + bare-subject))) (forward-line 1)) (setq headers-start (point-marker))) (setq headers-end (point-marker)) |