aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1996-10-23 09:26:33 +0000
committerSimon Marshall1996-10-23 09:26:33 +0000
commit34c3c889a093be7dba8c416fbfa2bdf159d0d96f (patch)
treedb4615990d47a37707f460a159cc801b28d283e7
parent4e59dfb557b8b071b7368805b3257b99d894b9f1 (diff)
downloademacs-34c3c889a093be7dba8c416fbfa2bdf159d0d96f.tar.gz
emacs-34c3c889a093be7dba8c416fbfa2bdf159d0d96f.zip
Tweak rmail-font-lock-keywords.
-rw-r--r--lisp/mail/rmail.el28
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 5cafb8b1c56..f38b1a8c615 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -178,18 +178,22 @@ before obeying `rmail-ignored-headers'.")
178 178
179(defvar rmail-font-lock-keywords 179(defvar rmail-font-lock-keywords
180 (eval-when-compile 180 (eval-when-compile
181 (let* ((cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-"))) 181 (let* ((cite-chars "[>|}]")
182 (list 182 (cite-prefix "A-Za-z")
183 '("^\\(From\\|Sender\\):" . font-lock-function-name-face) 183 (cite-suffix (concat cite-prefix "0-9_.@-`'\"")))
184 '("^Reply-To:.*$" . font-lock-function-name-face) 184 (list '("^\\(From\\|Sender\\):" . font-lock-function-name-face)
185 '("^Subject:" . font-lock-comment-face) 185 '("^Reply-To:.*$" . font-lock-function-name-face)
186 '("^\\(To\\|Apparently-To\\|Cc\\):" . font-lock-keyword-face) 186 '("^Subject:" . font-lock-comment-face)
187 (cons (concat "^[ \t]*" 187 '("^\\(To\\|Apparently-To\\|Cc\\):" . font-lock-keyword-face)
188 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" 188 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
189 "[>|}].*") 189 `(,cite-chars
190 'font-lock-reference-face) 190 (,(concat "\\=[ \t]*"
191 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$" 191 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?"
192 . font-lock-string-face)))) 192 cite-chars ".*")
193 (beginning-of-line) (end-of-line)
194 (0 font-lock-reference-face)))
195 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$"
196 . font-lock-string-face))))
193 "Additional expressions to highlight in Rmail mode.") 197 "Additional expressions to highlight in Rmail mode.")
194 198
195;; These are used by autoloaded rmail-summary. 199;; These are used by autoloaded rmail-summary.