emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r103797: mm-view.el (mm-display-inlin


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103797: mm-view.el (mm-display-inline-fontify): Do not fontify with fundamental-mode.
Date: Fri, 01 Apr 2011 14:24:22 +0000
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103797
author: Julien Danjou <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Fri 2011-04-01 14:24:22 +0000
message:
  mm-view.el (mm-display-inline-fontify): Do not fontify with fundamental-mode.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/mm-view.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2011-03-31 13:31:56 +0000
+++ b/lisp/gnus/ChangeLog       2011-04-01 14:24:22 +0000
@@ -1,3 +1,8 @@
+2011-04-01  Julien Danjou  <address@hidden>
+
+       * mm-view.el (mm-display-inline-fontify): Do not fontify with
+       fundamental-mode.
+
 2011-03-30  Lars Magne Ingebrigtsen  <address@hidden>
 
        * gnus-sum.el (gnus-update-marks): Revert intersection change, which

=== modified file 'lisp/gnus/mm-view.el'
--- a/lisp/gnus/mm-view.el      2011-03-29 13:23:38 +0000
+++ b/lisp/gnus/mm-view.el      2011-04-01 14:24:22 +0000
@@ -608,7 +608,9 @@
             (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]