aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1997-03-15 13:26:59 +0000
committerSimon Marshall1997-03-15 13:26:59 +0000
commit3d51068df992001ede116ae744c195fa0186b37e (patch)
tree2aac592ffa78781668d6b6c17914fd476e795b5f
parent45c4fdeb98018e266b88068f95e76d770ce16e06 (diff)
downloademacs-3d51068df992001ede116ae744c195fa0186b37e.tar.gz
emacs-3d51068df992001ede116ae744c195fa0186b37e.zip
Tweak font-lock-keywords
-rw-r--r--lisp/mail/rmail.el11
-rw-r--r--lisp/mail/sendmail.el17
2 files changed, 17 insertions, 11 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 70308097d9c..8eb37907f4c 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -188,14 +188,17 @@ before obeying `rmail-ignored-headers'.")
188 (list '("^\\(From\\|Sender\\):" . font-lock-function-name-face) 188 (list '("^\\(From\\|Sender\\):" . font-lock-function-name-face)
189 '("^Reply-To:.*$" . font-lock-function-name-face) 189 '("^Reply-To:.*$" . font-lock-function-name-face)
190 '("^Subject:" . font-lock-comment-face) 190 '("^Subject:" . font-lock-comment-face)
191 '("^\\(To\\|Apparently-To\\|Cc\\):" . font-lock-keyword-face) 191 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):"
192 . font-lock-keyword-face)
192 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. 193 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
193 `(,cite-chars 194 `(,cite-chars
194 (,(concat "\\=[ \t]*" 195 (,(concat "\\=[ \t]*"
195 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" 196 "\\(\\([" cite-prefix "]+[" cite-suffix "]*\\)?"
196 cite-chars ".*") 197 "\\(" cite-chars "[ \t]*\\)\\)+"
198 "\\(.*\\)")
197 (beginning-of-line) (end-of-line) 199 (beginning-of-line) (end-of-line)
198 (0 font-lock-reference-face))) 200 (2 font-lock-reference-face nil t)
201 (4 font-lock-comment-face nil t)))
199 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$" 202 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$"
200 . font-lock-string-face)))) 203 . font-lock-string-face))))
201 "Additional expressions to highlight in Rmail mode.") 204 "Additional expressions to highlight in Rmail mode.")
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 1ac0e958fb4..8da44d991f9 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -215,20 +215,23 @@ actually occur.")
215 (let* ((cite-chars "[>|}]") 215 (let* ((cite-chars "[>|}]")
216 (cite-prefix "A-Za-z") 216 (cite-prefix "A-Za-z")
217 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) 217 (cite-suffix (concat cite-prefix "0-9_.@-`'\"")))
218 (list '("^To:" . font-lock-function-name-face) 218 (list '("^\\(To\\|Newsgroups\\):" . font-lock-function-name-face)
219 '("^B?CC:\\|^Reply-to:" . font-lock-keyword-face) 219 '("^\\(B?CC\\|Reply-to\\):" . font-lock-keyword-face)
220 '("^\\(Subject:\\)[ \t]*\\(.+\\)?" 220 '("^\\(Subject:\\)[ \t]*\\(.+\\)?"
221 (1 font-lock-comment-face) (2 font-lock-type-face nil t)) 221 (1 font-lock-comment-face) (2 font-lock-type-face nil t))
222 ;; Use EVAL to delay in case `mail-header-separator' gets changed. 222 ;; Use EVAL to delay in case `mail-header-separator' gets changed.
223 '(eval cons (concat "^" (regexp-quote mail-header-separator) "$") 223 '(eval .
224 'font-lock-comment-face) 224 (cons (concat "^" (regexp-quote mail-header-separator) "$")
225 'font-lock-warning-face))
225 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. 226 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
226 `(,cite-chars 227 `(,cite-chars
227 (,(concat "\\=[ \t]*" 228 (,(concat "\\=[ \t]*"
228 "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" 229 "\\(\\([" cite-prefix "]+[" cite-suffix "]*\\)?"
229 cite-chars ".*") 230 "\\(" cite-chars "[ \t]*\\)\\)+"
231 "\\(.*\\)")
230 (beginning-of-line) (end-of-line) 232 (beginning-of-line) (end-of-line)
231 (0 font-lock-reference-face))) 233 (2 font-lock-reference-face nil t)
234 (4 font-lock-comment-face nil t)))
232 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*" 235 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*"
233 . font-lock-string-face)))) 236 . font-lock-string-face))))
234 "Additional expressions to highlight in Mail mode.") 237 "Additional expressions to highlight in Mail mode.")