mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
check length of mail-header-separator before using in font-lock-keywords.
This commit is contained in:
parent
4116deeea8
commit
e69d810c33
@ -271,8 +271,10 @@ actually occur.")
|
||||
(1 font-lock-comment-face) (2 font-lock-type-face nil t))
|
||||
;; Use EVAL to delay in case `mail-header-separator' gets changed.
|
||||
'(eval .
|
||||
(cons (concat "^" (regexp-quote mail-header-separator) "$")
|
||||
'font-lock-warning-face))
|
||||
(let ((separator (if (zerop (length mail-header-separator))
|
||||
" "
|
||||
(regexp-quote mail-header-separator))))
|
||||
(cons (concat "^" separator "$") 'font-lock-warning-face)))
|
||||
;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
|
||||
`(,cite-chars
|
||||
(,(concat "\\=[ \t]*"
|
||||
|
Loading…
Reference in New Issue
Block a user