changeset 13302:662aed026c4b

Change to citation regexp for rmail-font-lock-keywords.
author Simon Marshall <simon@gnu.org>
date Thu, 26 Oct 1995 13:40:54 +0000
parents 0cbf58edd87f
children fa3108c53fc3
files lisp/mail/rmail.el
diffstat 1 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Thu Oct 26 13:34:28 1995 +0000
+++ b/lisp/mail/rmail.el	Thu Oct 26 13:40:54 1995 +0000
@@ -151,12 +151,19 @@
 (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.