X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=7c1f02c92f1499be58df08929863d4e1aa013118;hb=332b3b639ebd797eac6980fc7bd547f6cd064e84;hp=ea20ddcef4d8fdb634c59dcaff3ff44a36dc818f;hpb=e722b4f48c90ea6536ac7efef47f9d0f3d8cc191;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ea20ddce..7c1f02c9 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -84,6 +84,11 @@ visible for any given message." :type 'boolean :group 'notmuch-show) +(defcustom notmuch-show-header-line t + "Show a header line with the current message's subject." + :type 'boolean + :group 'notmuch-show) + (defcustom notmuch-show-relative-dates t "Display relative dates in the message summary line." :type 'boolean @@ -1345,11 +1350,12 @@ If no messages match the query return NIL." (notmuch-show-mapc (lambda () (notmuch-show-set-prop :orig-tags (notmuch-show-get-tags)))) ;; Set the header line to the subject of the first message. - (setq header-line-format - (replace-regexp-in-string "%" "%%" - (notmuch-sanitize - (notmuch-show-strip-re - (notmuch-show-get-subject))))) + (when notmuch-show-header-line + (setq header-line-format + (replace-regexp-in-string "%" "%%" + (notmuch-sanitize + (notmuch-show-strip-re + (notmuch-show-get-subject)))))) (run-hooks 'notmuch-show-hook) (if state (notmuch-show-apply-state state) @@ -2086,7 +2092,7 @@ message." ;; Use the originating buffer's working directory instead of ;; that of the pipe buffer. (cd cwd) - (let ((exit-code (notmuch--call-process-shell-command shell-command nil buf))) + (let ((exit-code (call-process-shell-command shell-command nil buf))) (goto-char (point-max)) (set-buffer-modified-p nil) (unless (zerop exit-code)