aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-03-17 21:49:35 -0700
committerGlenn Morris2010-03-17 21:49:35 -0700
commitf454672ba3981c4541beb5018a02ffb08ed81849 (patch)
treefd83a3f60e7a8da778e1efcd7c111667d9cfca5f
parentd5704d66b7244f17c7f3463b1bd821215ae54f46 (diff)
downloademacs-f454672ba3981c4541beb5018a02ffb08ed81849.tar.gz
emacs-f454672ba3981c4541beb5018a02ffb08ed81849.zip
Restore user option rmail-highlight-face.
* mail/rmail.el (rmail-highlight-face): Restore option deleted 2008-02-13 without comment; mark it obsolete. (rmail-highlight-headers): Use rmail-highlight-face once more.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/mail/rmail.el25
2 files changed, 28 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 832297eded5..45cfb194df2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-03-18 Glenn Morris <rgm@gnu.org>
2
3 * mail/rmail.el (rmail-highlight-face): Restore option deleted
4 2008-02-13 without comment; mark it obsolete.
5 (rmail-highlight-headers): Use rmail-highlight-face once more.
6
12010-03-16 Chong Yidong <cyd@stupidchicken.com> 72010-03-16 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * woman.el (woman2-process-escapes): Only consume the newline if 9 * woman.el (woman2-process-escapes): Only consume the newline if
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index a737b99c29e..630c729703b 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -381,6 +381,20 @@ The variable `rmail-highlighted-headers' specifies which headers."
381 :group 'rmail-headers 381 :group 'rmail-headers
382 :version "22.1") 382 :version "22.1")
383 383
384;; This was removed in Emacs 23.1 with no notification, an unnecessary
385;; incompatible change.
386(defcustom rmail-highlight-face 'rmail-highlight
387 "Face used by Rmail for highlighting headers."
388 ;; Note that nil doesn't actually mean use the default face, it
389 ;; means use either bold or highlight. It's not worth fixing this
390 ;; now that this is obsolete.
391 :type '(choice (const :tag "Default" nil)
392 face)
393 :group 'rmail-headers)
394(make-obsolete-variable 'rmail-highlight-face
395 "customize the face `rmail-highlight' instead."
396 "23.2")
397
384(defface rmail-header-name 398(defface rmail-header-name
385 '((t (:inherit font-lock-function-name-face))) 399 '((t (:inherit font-lock-function-name-face)))
386 "Face to use for highlighting the header names. 400 "Face to use for highlighting the header names.
@@ -2883,7 +2897,7 @@ using the coding system CODING."
2883 2897
2884(defun rmail-highlight-headers () 2898(defun rmail-highlight-headers ()
2885 "Highlight the headers specified by `rmail-highlighted-headers'. 2899 "Highlight the headers specified by `rmail-highlighted-headers'.
2886Uses the face `rmail-highlight'." 2900Uses the face specified by `rmail-highlight-face'."
2887 (if rmail-highlighted-headers 2901 (if rmail-highlighted-headers
2888 (save-excursion 2902 (save-excursion
2889 (search-forward "\n\n" nil 'move) 2903 (search-forward "\n\n" nil 'move)
@@ -2891,6 +2905,11 @@ Uses the face `rmail-highlight'."
2891 (narrow-to-region (point-min) (point)) 2905 (narrow-to-region (point-min) (point))
2892 (let ((case-fold-search t) 2906 (let ((case-fold-search t)
2893 (inhibit-read-only t) 2907 (inhibit-read-only t)
2908 ;; When rmail-highlight-face is removed, just
2909 ;; use 'rmail-highlight here.
2910 (face (or rmail-highlight-face
2911 (if (face-differs-from-default-p 'bold)
2912 'bold 'highlight)))
2894 ;; List of overlays to reuse. 2913 ;; List of overlays to reuse.
2895 (overlays rmail-overlay-list)) 2914 (overlays rmail-overlay-list))
2896 (goto-char (point-min)) 2915 (goto-char (point-min))
@@ -2909,12 +2928,12 @@ Uses the face `rmail-highlight'."
2909 (progn 2928 (progn
2910 (setq overlay (car overlays) 2929 (setq overlay (car overlays)
2911 overlays (cdr overlays)) 2930 overlays (cdr overlays))
2912 (overlay-put overlay 'face 'rmail-highlight) 2931 (overlay-put overlay 'face face)
2913 (move-overlay overlay beg (point))) 2932 (move-overlay overlay beg (point)))
2914 ;; Make a new overlay and add it to 2933 ;; Make a new overlay and add it to
2915 ;; rmail-overlay-list. 2934 ;; rmail-overlay-list.
2916 (setq overlay (make-overlay beg (point))) 2935 (setq overlay (make-overlay beg (point)))
2917 (overlay-put overlay 'face 'rmail-highlight) 2936 (overlay-put overlay 'face face)
2918 (setq rmail-overlay-list 2937 (setq rmail-overlay-list
2919 (cons overlay rmail-overlay-list)))))))))) 2938 (cons overlay rmail-overlay-list))))))))))
2920 2939