aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1995-10-26 13:48:35 +0000
committerSimon Marshall1995-10-26 13:48:35 +0000
commit4e84ff47a9d5df47b98e69c018af72a0e0f6d5f2 (patch)
tree0f7a2e1e90056ddd12f90b93a8cae11b91acb052
parent1e0b807920b11a7c5a063c173697f45106c36c3b (diff)
downloademacs-4e84ff47a9d5df47b98e69c018af72a0e0f6d5f2.tar.gz
emacs-4e84ff47a9d5df47b98e69c018af72a0e0f6d5f2.zip
Change to citation regexp for mail-font-lock-keywords.
-rw-r--r--lisp/mail/sendmail.el22
1 files changed, 14 insertions, 8 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index ea2a291aa15..a455e8d176d 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -199,14 +199,20 @@ actually occur.")
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 (list '("^To:" . font-lock-function-name-face) 202 (eval-when-compile
203 '("^B?CC:\\|^Reply-To:" . font-lock-keyword-face) 203 (let* ((cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-")))
204 '("^Subject:" . font-lock-comment-face) 204 (list '("^To:" . font-lock-function-name-face)
205 '("^Subject:\\s *\\(.+\\)" 1 font-lock-type-face) 205 '("^B?CC:\\|^Reply-To:" . font-lock-keyword-face)
206 (list (concat "^\\(" (regexp-quote mail-header-separator) "\\)$") 1 206 '("^\\(Subject:\\)[ \t]*\\(.+\\)?"
207 'font-lock-comment-face) 207 (1 font-lock-comment-face) (2 font-lock-type-face nil t))
208 '("^[ \t]*\\sw*[>|}].*" . font-lock-reference-face) ; Citation. 208 (list (concat "^\\(" (regexp-quote mail-header-separator) "\\)$")
209 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*" . font-lock-string-face)) 209 1 'font-lock-comment-face)
210 (cons (concat "^[ \t]*"
211 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?"
212 "[>|}].*")
213 'font-lock-reference-face)
214 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*"
215 . font-lock-string-face))))
210 "Additional expressions to highlight in Mail mode.") 216 "Additional expressions to highlight in Mail mode.")
211 217
212(defvar mail-send-hook nil 218(defvar mail-send-hook nil