]> git.eshelyaron.com Git - emacs.git/commitdiff
Must fontify only if we're actually showing a message.
authorSimon Marshall <simon@gnu.org>
Thu, 7 Mar 1996 10:38:29 +0000 (10:38 +0000)
committerSimon Marshall <simon@gnu.org>
Thu, 7 Mar 1996 10:38:29 +0000 (10:38 +0000)
lisp/mail/rmail.el

index ad3e47799089e5ffe62d0f81c390d73358c34e88..4f7aa070836f1450bc5f63eda5780e904759513f 100644 (file)
@@ -2524,8 +2524,7 @@ This has an effect only if a summary buffer exists.")
         (unwind-protect 
             (progn
               (select-window window)
-              (enlarge-window (- rmail-summary-window-size
-                                 (window-height))))
+              (enlarge-window (- rmail-summary-window-size (window-height))))
           (select-window selected)))))
 \f
 ;;;; *** Rmail Local Fontification ***
@@ -2534,7 +2533,9 @@ This has an effect only if a summary buffer exists.")
   ;; This function's symbol is bound to font-lock-fontify-buffer-function.
   (make-local-hook 'rmail-show-message-hook)
   (add-hook 'rmail-show-message-hook 'rmail-fontify-message nil t)
-  (rmail-fontify-message)
+  ;; If we're already showing a message, fontify it now.
+  (if rmail-current-message (rmail-fontify-message))
+  ;; Prevent Font Lock mode from kicking in.
   (setq font-lock-fontified t))
 
 (defun rmail-unfontify-buffer-function ()