diff options
author | Simon Marshall <simon@gnu.org> | 1995-10-26 13:40:54 +0000 |
---|---|---|
committer | Simon Marshall <simon@gnu.org> | 1995-10-26 13:40:54 +0000 |
commit | 23a9abdca518e8731e1a7afc9a259819c0109073 (patch) | |
tree | d8868d199ce14b25471e321211522159d5f81774 /lisp/mail | |
parent | d3c0f33c6297e956946ca3d5c001b365e3b4492b (diff) | |
download | emacs-23a9abdca518e8731e1a7afc9a259819c0109073.tar.gz |
Change to citation regexp for rmail-font-lock-keywords.
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/rmail.el | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 49128f85eb5..bdd0256768e 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -151,12 +151,19 @@ Called with region narrowed to the message, including headers.") (defvar rmail-overlay-list nil) (defvar rmail-font-lock-keywords - '(("^\\(From\\|Sender\\):" . font-lock-function-name-face) - ("^Reply-To:.*$" . font-lock-function-name-face) - ("^Subject:" . font-lock-comment-face) - ("^\\(To\\|Apparently-To\\|Cc\\):" . font-lock-keyword-face) - ("^[ \t]*\\sw*[>|}].*$" . font-lock-reference-face) ; Citation. - ("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$" . font-lock-string-face)) + (eval-when-compile + (let* ((cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-"))) + (list + '("^\\(From\\|Sender\\):" . font-lock-function-name-face) + '("^Reply-To:.*$" . font-lock-function-name-face) + '("^Subject:" . font-lock-comment-face) + '("^\\(To\\|Apparently-To\\|Cc\\):" . font-lock-keyword-face) + (cons (concat "^[ \t]*" + "\\([" cite-prefix "]+[" cite-suffix "]*\\)?" + "[>|}].*") + 'font-lock-reference-face) + '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$" + . font-lock-string-face)))) "Additional expressions to highlight in Rmail mode.") ;; These are used by autoloaded rmail-summary. |