[gnus git] branch master updated: n0-15-28-ga030e58 =1= mm-view: do not fontify fundamental-mode

Julien Danjou <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  a030e58d75e8dcaff893d0618f6ac0daa2ca9823 (commit)
      from  04c1fb9a055fa825b0178bfa4ab190e6e5c573b8 (commit)


- Log -----------------------------------------------------------------
commit a030e58d75e8dcaff893d0618f6ac0daa2ca9823
Author: Julien Danjou <[email protected]>
Date:   Fri Apr 1 10:11:50 2011 +0200

    mm-view: do not fontify fundamental-mode
    
    Signed-off-by: Julien Danjou <[email protected]>

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8a77f8b..595d32b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-01  Julien Danjou  <[email protected]>
+
+	* mm-view.el (mm-display-inline-fontify): Do not fontify with
+	fundamental-mode.
+
 2011-03-30  Lars Magne Ingebrigtsen  <[email protected]>
 
 	* gnus-sum.el (gnus-update-marks): Revert intersection change, which
diff --git a/lisp/mm-view.el b/lisp/mm-view.el
index abd78b8..5a90f01 100644
--- a/lisp/mm-view.el
+++ b/lisp/mm-view.el
@@ -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

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |    5 +++++
 lisp/mm-view.el |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.