1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-29 19:48:19 +00:00

mm-view.el (mm-display-inline-fontify): Do not fontify with fundamental-mode.

This commit is contained in:
Julien Danjou 2011-04-01 14:24:22 +00:00 committed by Katsumi Yamaoka
parent 0f0c1f27a9
commit 1c412c000a
2 changed files with 8 additions and 1 deletions

View 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

View 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