aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1998-03-25 16:41:18 +0000
committerSimon Marshall1998-03-25 16:41:18 +0000
commite69d810c33b897f217460eb07afd1e833161a9e2 (patch)
tree9f4e06bb46fd70b57a89dff42b93459766dcf762
parent4116deeea850a713bf63abcb90439bacbd5453a2 (diff)
downloademacs-e69d810c33b897f217460eb07afd1e833161a9e2.tar.gz
emacs-e69d810c33b897f217460eb07afd1e833161a9e2.zip
check length of mail-header-separator before using in font-lock-keywords.
-rw-r--r--lisp/mail/sendmail.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index b8e36ee1517..5a01eae58d5 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -271,8 +271,10 @@ actually occur.")
271 (1 font-lock-comment-face) (2 font-lock-type-face nil t)) 271 (1 font-lock-comment-face) (2 font-lock-type-face nil t))
272 ;; Use EVAL to delay in case `mail-header-separator' gets changed. 272 ;; Use EVAL to delay in case `mail-header-separator' gets changed.
273 '(eval . 273 '(eval .
274 (cons (concat "^" (regexp-quote mail-header-separator) "$") 274 (let ((separator (if (zerop (length mail-header-separator))
275 'font-lock-warning-face)) 275 " "
276 (regexp-quote mail-header-separator))))
277 (cons (concat "^" separator "$") 'font-lock-warning-face)))
276 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. 278 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
277 `(,cite-chars 279 `(,cite-chars
278 (,(concat "\\=[ \t]*" 280 (,(concat "\\=[ \t]*"