diff options
| author | Simon Marshall | 1996-10-23 09:26:33 +0000 |
|---|---|---|
| committer | Simon Marshall | 1996-10-23 09:26:33 +0000 |
| commit | 34c3c889a093be7dba8c416fbfa2bdf159d0d96f (patch) | |
| tree | db4615990d47a37707f460a159cc801b28d283e7 | |
| parent | 4e59dfb557b8b071b7368805b3257b99d894b9f1 (diff) | |
| download | emacs-34c3c889a093be7dba8c416fbfa2bdf159d0d96f.tar.gz emacs-34c3c889a093be7dba8c416fbfa2bdf159d0d96f.zip | |
Tweak rmail-font-lock-keywords.
| -rw-r--r-- | lisp/mail/rmail.el | 28 |
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. |