aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorBastien Guerry2008-02-12 07:10:49 +0000
committerBastien Guerry2008-02-12 07:10:49 +0000
commitb96817c3877534f85536d9228d057b860efd5f6d (patch)
tree341d35de8aefe4150066a18883f4bb7bce23bacd /lisp/mail
parentdd728672b2b464e55cbed45683e81df52d63fe42 (diff)
downloademacs-b96817c3877534f85536d9228d057b860efd5f6d.tar.gz
emacs-b96817c3877534f85536d9228d057b860efd5f6d.zip
2008-02-11 Drew Adams <drew.adams@oracle.com>
* help.el (describe-key): Joined some split lines to facilitate filling. * help-fns.el (describe-function-1): Fill text of overlong lines.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail.el32
1 files changed, 23 insertions, 9 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index ed434ad75cb..9570ab3b4ea 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -345,6 +345,19 @@ 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
348;;;###autoload 361;;;###autoload
349(defcustom rmail-delete-after-output nil "\ 362(defcustom rmail-delete-after-output nil "\
350*Non-nil means automatically delete a message that is copied to a file." 363*Non-nil means automatically delete a message that is copied to a file."
@@ -698,19 +711,19 @@ The first parenthesized expression should match the MIME-charset name.")
698 "\n")) 711 "\n"))
699 nil) 712 nil)
700 713
701(defvar rmail-font-lock-keywords 714(setq rmail-font-lock-keywords
702 ;; These are all matched case-insensitively. 715 ;; These are all matched case-insensitively.
703 (eval-when-compile 716 ;;(eval-when-compile
704 (let* ((cite-chars "[>|}]") 717 (let* ((cite-chars "[>|}]")
705 (cite-prefix "a-z") 718 (cite-prefix "a-z")
706 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) 719 (cite-suffix (concat cite-prefix "0-9_.@-`'\"")))
707 (list '("^\\(From\\|Sender\\|Resent-From\\):" 720 (list '("^\\(From\\|Sender\\|Resent-From\\):"
708 . font-lock-function-name-face) 721 . 'rmail-header-name)
709 '("^Reply-To:.*$" . font-lock-function-name-face) 722 '("^Reply-To:.*$" . 'rmail-header-name)
710 '("^Subject:" . font-lock-comment-face) 723 '("^Subject:" . 'rmail-header-name)
711 '("^X-Spam-Status:" . font-lock-keyword-face) 724 '("^X-Spam-Status:" . 'rmail-header-name)
712 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):" 725 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):"
713 . font-lock-keyword-face) 726 . 'rmail-header-name)
714 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. 727 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
715 `(,cite-chars 728 `(,cite-chars
716 (,(concat "\\=[ \t]*" 729 (,(concat "\\=[ \t]*"
@@ -721,8 +734,9 @@ The first parenthesized expression should match the MIME-charset name.")
721 (1 font-lock-comment-delimiter-face nil t) 734 (1 font-lock-comment-delimiter-face nil t)
722 (5 font-lock-comment-face nil t))) 735 (5 font-lock-comment-face nil t)))
723 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$" 736 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$"
724 . font-lock-string-face)))) 737 . 'rmail-header-name))))
725 "Additional expressions to highlight in Rmail mode.") 738;;)
739;; "Additional expressions to highlight in Rmail mode.")
726 740
727;; Perform BODY in the summary buffer 741;; Perform BODY in the summary buffer
728;; in such a way that its cursor is properly updated in its own window. 742;; in such a way that its cursor is properly updated in its own window.