Mercurial > emacs
comparison lisp/mail/sendmail.el @ 13304:3ac6db7496fd
Don't eval-when-compile mail-font-lock-keywords, since it refers to mail-header-separator.
author | Simon Marshall <simon@gnu.org> |
---|---|
date | Thu, 26 Oct 1995 13:53:18 +0000 |
parents | fa3108c53fc3 |
children | 2b18ef667bde |
comparison
equal
deleted
inserted
replaced
13303:fa3108c53fc3 | 13304:3ac6db7496fd |
---|---|
197 (progn | 197 (progn |
198 (setq mail-mode-syntax-table (copy-syntax-table text-mode-syntax-table)) | 198 (setq mail-mode-syntax-table (copy-syntax-table text-mode-syntax-table)) |
199 (modify-syntax-entry ?% ". " mail-mode-syntax-table))) | 199 (modify-syntax-entry ?% ". " mail-mode-syntax-table))) |
200 | 200 |
201 (defvar mail-font-lock-keywords | 201 (defvar mail-font-lock-keywords |
202 (eval-when-compile | 202 (let* ((cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-"))) |
203 (let* ((cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-"))) | 203 (list '("^To:" . font-lock-function-name-face) |
204 (list '("^To:" . font-lock-function-name-face) | 204 '("^B?CC:\\|^Reply-To:" . font-lock-keyword-face) |
205 '("^B?CC:\\|^Reply-To:" . font-lock-keyword-face) | 205 '("^\\(Subject:\\)[ \t]*\\(.+\\)?" |
206 '("^\\(Subject:\\)[ \t]*\\(.+\\)?" | 206 (1 font-lock-comment-face) (2 font-lock-type-face nil t)) |
207 (1 font-lock-comment-face) (2 font-lock-type-face nil t)) | 207 (list (concat "^\\(" (regexp-quote mail-header-separator) "\\)$") |
208 (list (concat "^\\(" (regexp-quote mail-header-separator) "\\)$") | 208 1 'font-lock-comment-face) |
209 1 'font-lock-comment-face) | 209 (cons (concat "^[ \t]*" |
210 (cons (concat "^[ \t]*" | 210 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" |
211 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" | 211 "[>|}].*") |
212 "[>|}].*") | 212 'font-lock-reference-face) |
213 'font-lock-reference-face) | 213 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*" |
214 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*" | 214 . font-lock-string-face))) |
215 . font-lock-string-face)))) | |
216 "Additional expressions to highlight in Mail mode.") | 215 "Additional expressions to highlight in Mail mode.") |
217 | 216 |
218 (defvar mail-send-hook nil | 217 (defvar mail-send-hook nil |
219 "Normal hook run before sending mail, in Mail mode.") | 218 "Normal hook run before sending mail, in Mail mode.") |
220 | 219 |