mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
emacs: notmuch-fontify-headers: Remove unneeded progn and indent correctly.
The defun special form doesn't require a progn. And the remainder of the function was previously indented in a misleading way, (as if each "if" was always evaluated, rather than each only being evaluated if all the previous evaluated to nil).
This commit is contained in:
parent
fcc36df1fa
commit
a0439ded70
1 changed files with 23 additions and 24 deletions
|
@ -697,7 +697,6 @@ which this thread was originally shown."
|
||||||
)))
|
)))
|
||||||
|
|
||||||
(defun notmuch-fontify-headers ()
|
(defun notmuch-fontify-headers ()
|
||||||
(progn
|
|
||||||
(while (looking-at "[[:space:]]")
|
(while (looking-at "[[:space:]]")
|
||||||
(forward-char))
|
(forward-char))
|
||||||
(if (looking-at "[Tt]o:")
|
(if (looking-at "[Tt]o:")
|
||||||
|
@ -723,7 +722,7 @@ which this thread was originally shown."
|
||||||
(overlay-put (make-overlay (point) (re-search-forward ":"))
|
(overlay-put (make-overlay (point) (re-search-forward ":"))
|
||||||
'face 'message-header-name)
|
'face 'message-header-name)
|
||||||
(overlay-put (make-overlay (point) (re-search-forward ".*$"))
|
(overlay-put (make-overlay (point) (re-search-forward ".*$"))
|
||||||
'face 'message-header-other))))))))
|
'face 'message-header-other)))))))
|
||||||
|
|
||||||
(defun notmuch-show-markup-header (depth)
|
(defun notmuch-show-markup-header (depth)
|
||||||
(re-search-forward notmuch-show-header-begin-regexp)
|
(re-search-forward notmuch-show-header-begin-regexp)
|
||||||
|
|
Loading…
Reference in a new issue