diff lisp/mail/rmail.el @ 8094:d9c6c2429f85

(rmail-highlight-headers): Do nothing if rmail-highlighted-headers is nil.
author Richard M. Stallman <rms@gnu.org>
date Thu, 30 Jun 1994 18:57:17 +0000
parents a03d7bdee306
children 5d9da948dc9f
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Thu Jun 30 06:46:44 1994 +0000
+++ b/lisp/mail/rmail.el	Thu Jun 30 18:57:17 1994 +0000
@@ -69,7 +69,8 @@
 
 ;;;###autoload
 (defvar rmail-highlighted-headers "^From:\\|^Subject:" "\
-*Regexp to match Header fields that rmail should normally highlight.")
+*Regexp to match Header fields that rmail should normally highlight.
+A value of nil means don't highlight.")
 
 ;;;###autoload
 (defvar rmail-delete-after-output nil "\
@@ -1404,7 +1405,8 @@
 ;; Find all occurrences of certain fields, and highlight them.
 (defun rmail-highlight-headers ()
   ;; Do this only if the system supports faces.
-  (if (fboundp 'internal-find-face)
+  (if (and (fboundp 'internal-find-face)
+	   rmail-highlighted-headers)
       (save-excursion
 	(search-forward "\n\n" nil 'move)
 	(save-restriction