aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1996-01-25 10:27:33 +0000
committerSimon Marshall1996-01-25 10:27:33 +0000
commit70a302f866d03f4cae73c2442f57e5eed13c6402 (patch)
tree7b1e43d602794b8ac66fa2255ffe12a6134cd819
parent3e7fc8bd9f63eaf98fd89e033f4a075c09bc88ea (diff)
downloademacs-70a302f866d03f4cae73c2442f57e5eed13c6402.tar.gz
emacs-70a302f866d03f4cae73c2442f57e5eed13c6402.zip
Use `eval' in mail-font-lock-keywords.
-rw-r--r--lisp/mail/sendmail.el27
1 files changed, 14 insertions, 13 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 237b46294df..fc14657c39b 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -209,19 +209,20 @@ actually occur.")
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