mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
emacs: escape % in header line format
We set header-line-format to the message subject, but if the subject contains percents, the next character is interpreted as a formatting control, which is not desired.
This commit is contained in:
parent
ce9f559b86
commit
cc3d25dd34
1 changed files with 5 additions and 1 deletions
|
@ -1198,7 +1198,11 @@ function is used."
|
|||
(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 (notmuch-sanitize (notmuch-show-strip-re (notmuch-show-get-subject))))
|
||||
(setq header-line-format
|
||||
(replace-regexp-in-string "%" "%%"
|
||||
(notmuch-sanitize
|
||||
(notmuch-show-strip-re
|
||||
(notmuch-show-get-subject)))))
|
||||
|
||||
(run-hooks 'notmuch-show-hook))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue