aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-01-06 01:08:31 +0000
committerRichard M. Stallman2003-01-06 01:08:31 +0000
commite68b1cf16eda60bb58c1e0ad2038e4f24dc1f513 (patch)
tree2a80c21736f1a3626c0978bf765b622ae6a101da
parentc034acdf5821baa967ef959d68ac7ca620f04e4f (diff)
downloademacs-e68b1cf16eda60bb58c1e0ad2038e4f24dc1f513.tar.gz
emacs-e68b1cf16eda60bb58c1e0ad2038e4f24dc1f513.zip
(rmail-font-lock-keywords): Discard code to match both cases.
(rmail-variables): Specify case-insensitive matching for font-lock. (rmail-font-lock-keywords): Match multiline In-Reply-To and X-*.
-rw-r--r--lisp/mail/rmail.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index f7e10f15549..7e7c7c9c1e1 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -544,11 +544,13 @@ The first parenthesized expression should match the MIME-charset name.")
544 nil) 544 nil)
545 545
546(defvar rmail-font-lock-keywords 546(defvar rmail-font-lock-keywords
547 ;; These are all matched case-insensitively.
547 (eval-when-compile 548 (eval-when-compile
548 (let* ((cite-chars "[>|}]") 549 (let* ((cite-chars "[>|}]")
549 (cite-prefix "A-Za-z") 550 (cite-prefix "a-z")
550 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) 551 (cite-suffix (concat cite-prefix "0-9_.@-`'\"")))
551 (list '("^\\(From\\|Sender\\|Resent-[Ff]rom\\):" . font-lock-function-name-face) 552 (list '("^\\(From\\|Sender\\|Resent-From\\):"
553 . font-lock-function-name-face)
552 '("^Reply-To:.*$" . font-lock-function-name-face) 554 '("^Reply-To:.*$" . font-lock-function-name-face)
553 '("^Subject:" . font-lock-comment-face) 555 '("^Subject:" . font-lock-comment-face)
554 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):" 556 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):"
@@ -562,7 +564,7 @@ The first parenthesized expression should match the MIME-charset name.")
562 (beginning-of-line) (end-of-line) 564 (beginning-of-line) (end-of-line)
563 (2 font-lock-constant-face nil t) 565 (2 font-lock-constant-face nil t)
564 (4 font-lock-comment-face nil t))) 566 (4 font-lock-comment-face nil t)))
565 '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$" 567 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$"
566 . font-lock-string-face)))) 568 . font-lock-string-face))))
567 "Additional expressions to highlight in Rmail mode.") 569 "Additional expressions to highlight in Rmail mode.")
568 570
@@ -1123,7 +1125,7 @@ Instead, these commands are available:
1123 (make-local-variable 'font-lock-defaults) 1125 (make-local-variable 'font-lock-defaults)
1124 (setq font-lock-defaults 1126 (setq font-lock-defaults
1125 '(rmail-font-lock-keywords 1127 '(rmail-font-lock-keywords
1126 t nil nil nil 1128 t t nil nil
1127 (font-lock-maximum-size . nil) 1129 (font-lock-maximum-size . nil)
1128 (font-lock-fontify-buffer-function . rmail-fontify-buffer-function) 1130 (font-lock-fontify-buffer-function . rmail-fontify-buffer-function)
1129 (font-lock-unfontify-buffer-function . rmail-unfontify-buffer-function) 1131 (font-lock-unfontify-buffer-function . rmail-unfontify-buffer-function)