Mercurial > emacs
comparison lisp/mail/sendmail.el @ 14364:64be2e6b8094
Use `eval' in mail-font-lock-keywords.
author | Simon Marshall <simon@gnu.org> |
---|---|
date | Thu, 25 Jan 1996 10:27:33 +0000 |
parents | 83f275dcd93a |
children | 8d779463ec36 |
comparison
equal
deleted
inserted
replaced
14363:754031d2354f | 14364:64be2e6b8094 |
---|---|
207 (progn | 207 (progn |
208 (setq mail-mode-syntax-table (copy-syntax-table text-mode-syntax-table)) | 208 (setq mail-mode-syntax-table (copy-syntax-table text-mode-syntax-table)) |
209 (modify-syntax-entry ?% ". " mail-mode-syntax-table))) | 209 (modify-syntax-entry ?% ". " mail-mode-syntax-table))) |
210 | 210 |
211 (defvar mail-font-lock-keywords | 211 (defvar mail-font-lock-keywords |
212 (let* ((cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-"))) | 212 (eval-when-compile |
213 (list '("^To:" . font-lock-function-name-face) | 213 (let* ((cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-"))) |
214 '("^B?CC:\\|^Reply-To:" . font-lock-keyword-face) | 214 (list '("^To:" . font-lock-function-name-face) |
215 '("^\\(Subject:\\)[ \t]*\\(.+\\)?" | 215 '("^B?CC:\\|^Reply-to:" . font-lock-keyword-face) |
216 (1 font-lock-comment-face) (2 font-lock-type-face nil t)) | 216 '("^\\(Subject:\\)[ \t]*\\(.+\\)?" |
217 (list (concat "^\\(" (regexp-quote mail-header-separator) "\\)$") | 217 (1 font-lock-comment-face) (2 font-lock-type-face nil t)) |
218 1 'font-lock-comment-face) | 218 '(eval cons (concat "^" (regexp-quote mail-header-separator) "$") |
219 (cons (concat "^[ \t]*" | 219 'font-lock-comment-face) |
220 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" | 220 (cons (concat "^[ \t]*" |
221 "[>|}].*") | 221 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" |
222 'font-lock-reference-face) | 222 "[>|}].*") |
223 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*" | 223 'font-lock-reference-face) |
224 . font-lock-string-face))) | 224 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*" |
225 . font-lock-string-face)))) | |
225 "Additional expressions to highlight in Mail mode.") | 226 "Additional expressions to highlight in Mail mode.") |
226 | 227 |
227 (defvar mail-send-hook nil | 228 (defvar mail-send-hook nil |
228 "Normal hook run before sending mail, in Mail mode.") | 229 "Normal hook run before sending mail, in Mail mode.") |
229 | 230 |