aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1996-03-07 10:38:29 +0000
committerSimon Marshall1996-03-07 10:38:29 +0000
commit35aba73916dfc9a41e1fe8710efa0aca25da166d (patch)
treed1d49d30154e29cc0af123bad391e536c742df0f
parent94de9afef16d40aa03109a132fd9b9439d2b367d (diff)
downloademacs-35aba73916dfc9a41e1fe8710efa0aca25da166d.tar.gz
emacs-35aba73916dfc9a41e1fe8710efa0aca25da166d.zip
Must fontify only if we're actually showing a message.
-rw-r--r--lisp/mail/rmail.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index ad3e4779908..4f7aa070836 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2524,8 +2524,7 @@ This has an effect only if a summary buffer exists.")
2524 (unwind-protect 2524 (unwind-protect
2525 (progn 2525 (progn
2526 (select-window window) 2526 (select-window window)
2527 (enlarge-window (- rmail-summary-window-size 2527 (enlarge-window (- rmail-summary-window-size (window-height))))
2528 (window-height))))
2529 (select-window selected))))) 2528 (select-window selected)))))
2530 2529
2531;;;; *** Rmail Local Fontification *** 2530;;;; *** Rmail Local Fontification ***
@@ -2534,7 +2533,9 @@ This has an effect only if a summary buffer exists.")
2534 ;; This function's symbol is bound to font-lock-fontify-buffer-function. 2533 ;; This function's symbol is bound to font-lock-fontify-buffer-function.
2535 (make-local-hook 'rmail-show-message-hook) 2534 (make-local-hook 'rmail-show-message-hook)
2536 (add-hook 'rmail-show-message-hook 'rmail-fontify-message nil t) 2535 (add-hook 'rmail-show-message-hook 'rmail-fontify-message nil t)
2537 (rmail-fontify-message) 2536 ;; If we're already showing a message, fontify it now.
2537 (if rmail-current-message (rmail-fontify-message))
2538 ;; Prevent Font Lock mode from kicking in.
2538 (setq font-lock-fontified t)) 2539 (setq font-lock-fontified t))
2539 2540
2540(defun rmail-unfontify-buffer-function () 2541(defun rmail-unfontify-buffer-function ()