diff options
| author | Julien Danjou | 2011-04-01 14:24:22 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-04-01 14:24:22 +0000 |
| commit | 1c412c000a5d61d1be7f6fa7e632a517b89de95b (patch) | |
| tree | 8bf98ceae3a9276267166c20713490e343d0e8da | |
| parent | 0f0c1f27a974ee41d96f19a5930e54f14e41ba89 (diff) | |
| download | emacs-1c412c000a5d61d1be7f6fa7e632a517b89de95b.tar.gz emacs-1c412c000a5d61d1be7f6fa7e632a517b89de95b.zip | |
mm-view.el (mm-display-inline-fontify): Do not fontify with fundamental-mode.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-view.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2496453dd89..37faf83fd12 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-04-01 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * mm-view.el (mm-display-inline-fontify): Do not fontify with | ||
| 4 | fundamental-mode. | ||
| 5 | |||
| 1 | 2011-03-30 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2011-03-30 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * gnus-sum.el (gnus-update-marks): Revert intersection change, which | 8 | * gnus-sum.el (gnus-update-marks): Revert intersection change, which |
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index abd78b8de02..5a90f015aed 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el | |||
| @@ -608,7 +608,9 @@ If MODE is not set, try to find mode automatically." | |||
| 608 | (funcall mode) | 608 | (funcall mode) |
| 609 | (set-auto-mode)) | 609 | (set-auto-mode)) |
| 610 | ;; The mode function might have already turned on font-lock. | 610 | ;; The mode function might have already turned on font-lock. |
| 611 | (unless (symbol-value 'font-lock-mode) | 611 | ;; Do not fontify if the guess mode is fundamental. |
| 612 | (unless (or (symbol-value 'font-lock-mode) | ||
| 613 | (eq major-mode 'fundamental-mode)) | ||
| 612 | (font-lock-fontify-buffer))) | 614 | (font-lock-fontify-buffer))) |
| 613 | ;; By default, XEmacs font-lock uses non-duplicable text | 615 | ;; By default, XEmacs font-lock uses non-duplicable text |
| 614 | ;; properties. This code forces all the text properties | 616 | ;; properties. This code forces all the text properties |