]> code.delx.au - gnu-emacs/commitdiff
mm-view.el (mm-display-inline-fontify): Do not fontify with fundamental-mode.
authorJulien Danjou <julien@danjou.info>
Fri, 1 Apr 2011 14:24:22 +0000 (14:24 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Apr 2011 14:24:22 +0000 (14:24 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mm-view.el

index 2496453dd89ba12aad04403fab5f30f3100773ea..37faf83fd121388d219d8223e0915b996d55241d 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-01  Julien Danjou  <julien@danjou.info>
+
+       * mm-view.el (mm-display-inline-fontify): Do not fontify with
+       fundamental-mode.
+
 2011-03-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-sum.el (gnus-update-marks): Revert intersection change, which
index abd78b8de0277bdbad3a9718eaee029256e74445..5a90f015aedcdaf11e917e7abfdc3ffd3f9fb21d 100644 (file)
@@ -608,7 +608,9 @@ If MODE is not set, try to find mode automatically."
             (funcall mode)
           (set-auto-mode))
        ;; The mode function might have already turned on font-lock.
-       (unless (symbol-value 'font-lock-mode)
+        ;; Do not fontify if the guess mode is fundamental.
+       (unless (or (symbol-value 'font-lock-mode)
+                    (eq major-mode 'fundamental-mode))
          (font-lock-fontify-buffer)))
       ;; By default, XEmacs font-lock uses non-duplicable text
       ;; properties.  This code forces all the text properties