aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastien Guerry2008-02-12 07:13:29 +0000
committerBastien Guerry2008-02-12 07:13:29 +0000
commit926f559c272e746331cdb4b82d99e5690564af3c (patch)
tree50f4bbf96d94a136dc17ed4bcb198ecb98992946
parentb96817c3877534f85536d9228d057b860efd5f6d (diff)
downloademacs-926f559c272e746331cdb4b82d99e5690564af3c.tar.gz
emacs-926f559c272e746331cdb4b82d99e5690564af3c.zip
Reverted wrong changes to rmail.el.
-rw-r--r--lisp/mail/rmail.el32
1 files changed, 9 insertions, 23 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 9570ab3b4ea..ed434ad75cb 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -345,19 +345,6 @@ See also `rmail-highlight-face'."
345 face) 345 face)
346 :group 'rmail-headers) 346 :group 'rmail-headers)
347 347
348(defface rmail-header-name
349 '((t (:inherit font-lock-function-name-face)))
350 "Face to use for highlighting the header names."
351 :group 'rmail-headers
352 :version "23.1")
353
354;;;###autoload
355(defcustom rmail-header-name-face 'rmail-header-name "\
356*Face to use for highlighting the header names."
357 :type '(choice (const :tag "Default" nil)
358 face)
359 :group 'rmail-headers)
360
361;;;###autoload 348;;;###autoload
362(defcustom rmail-delete-after-output nil "\ 349(defcustom rmail-delete-after-output nil "\
363*Non-nil means automatically delete a message that is copied to a file." 350*Non-nil means automatically delete a message that is copied to a file."
@@ -711,19 +698,19 @@ The first parenthesized expression should match the MIME-charset name.")
711 "\n")) 698 "\n"))
712 nil) 699 nil)
713 700
714(setq rmail-font-lock-keywords 701(defvar rmail-font-lock-keywords
715 ;; These are all matched case-insensitively. 702 ;; These are all matched case-insensitively.
716 ;;(eval-when-compile 703 (eval-when-compile
717 (let* ((cite-chars "[>|}]") 704 (let* ((cite-chars "[>|}]")
718 (cite-prefix "a-z") 705 (cite-prefix "a-z")
719 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) 706 (cite-suffix (concat cite-prefix "0-9_.@-`'\"")))
720 (list '("^\\(From\\|Sender\\|Resent-From\\):" 707 (list '("^\\(From\\|Sender\\|Resent-From\\):"
721 . 'rmail-header-name) 708 . font-lock-function-name-face)
722 '("^Reply-To:.*$" . 'rmail-header-name) 709 '("^Reply-To:.*$" . font-lock-function-name-face)
723 '("^Subject:" . 'rmail-header-name) 710 '("^Subject:" . font-lock-comment-face)
724 '("^X-Spam-Status:" . 'rmail-header-name) 711 '("^X-Spam-Status:" . font-lock-keyword-face)
725 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):" 712 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):"
726 . 'rmail-header-name) 713 . font-lock-keyword-face)
727 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. 714 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
728 `(,cite-chars 715 `(,cite-chars
729 (,(concat "\\=[ \t]*" 716 (,(concat "\\=[ \t]*"
@@ -734,9 +721,8 @@ The first parenthesized expression should match the MIME-charset name.")
734 (1 font-lock-comment-delimiter-face nil t) 721 (1 font-lock-comment-delimiter-face nil t)
735 (5 font-lock-comment-face nil t))) 722 (5 font-lock-comment-face nil t)))
736 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$" 723 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$"
737 . 'rmail-header-name)))) 724 . font-lock-string-face))))
738;;) 725 "Additional expressions to highlight in Rmail mode.")
739;; "Additional expressions to highlight in Rmail mode.")
740 726
741;; Perform BODY in the summary buffer 727;; Perform BODY in the summary buffer
742;; in such a way that its cursor is properly updated in its own window. 728;; in such a way that its cursor is properly updated in its own window.