aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-show.el
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2012-01-30 10:16:01 +0000
committerGravatar David Bremner <bremner@debian.org>2012-02-03 21:20:15 -0400
commit6bd3d8af5431542f352f084b6366e88b98b019a1 (patch)
treefe878194e965a5708e090bcd9759fe32cb2841db /emacs/notmuch-show.el
parente516a712bb79e523629012ee6a8325f5166b4ee5 (diff)
emacs: Prefer '[No Subject]' to blank subjects.
Diffstat (limited to 'emacs/notmuch-show.el')
-rw-r--r--emacs/notmuch-show.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 0a945ea0..3a1a8c89 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1018,7 +1018,7 @@ buffer."
(notmuch-show-next-open-message))
;; Set the header line to the subject of the first open message.
- (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject)))
+ (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-pretty-subject)))
(notmuch-show-mark-read)))
@@ -1250,6 +1250,9 @@ Some useful entries are:
(defun notmuch-show-get-depth ()
(notmuch-show-get-prop :depth))
+(defun notmuch-show-get-pretty-subject ()
+ (notmuch-prettify-subject (notmuch-show-get-subject)))
+
(defun notmuch-show-set-tags (tags)
"Set the tags of the current message."
(notmuch-show-set-prop :tags tags)