Mercurial > emacs
comparison lisp/mail/sendmail.el @ 21284:1d971e4f4645
check length of mail-header-separator before using in font-lock-keywords.
author | Simon Marshall <simon@gnu.org> |
---|---|
date | Wed, 25 Mar 1998 16:41:18 +0000 |
parents | 54413501e4a9 |
children | 129d706946d5 |
comparison
equal
deleted
inserted
replaced
21283:c431691cbff1 | 21284:1d971e4f4645 |
---|---|
269 '("^\\(B?CC\\|Reply-to\\):" . font-lock-keyword-face) | 269 '("^\\(B?CC\\|Reply-to\\):" . font-lock-keyword-face) |
270 '("^\\(Subject:\\)[ \t]*\\(.+\\)?" | 270 '("^\\(Subject:\\)[ \t]*\\(.+\\)?" |
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]*" |
279 "\\(\\([" cite-prefix "]+[" cite-suffix "]*\\)?" | 281 "\\(\\([" cite-prefix "]+[" cite-suffix "]*\\)?" |
280 "\\(" cite-chars "[ \t]*\\)\\)+" | 282 "\\(" cite-chars "[ \t]*\\)\\)+" |