Make fontification of org modes work again
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 28 Jan 2012 19:33:23 +0000 (20:33 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 28 Jan 2012 19:33:23 +0000 (20:33 +0100)
* mm-view.el (mm-display-inline-fontify): Bind `font-lock-support-mode'
instead of setting it locally, since the latter doesn't seem to have
any effect (most of the time).

lisp/ChangeLog
lisp/mm-view.el

index 04bd1e1..026bb5e 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-28  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * mm-view.el (mm-display-inline-fontify): Bind `font-lock-support-mode'
+       instead of setting it locally, since the latter doesn't seem to have
+       any effect (most of the time).
+
 2012-01-27  Elias Pipping  <pipping@lavabit.com>  (tiny change)
 
        * shr.el (shr-browse-url): Fix the name of the `browse-url-mail'
index 18ee3b5..1d7b174 100644 (file)
@@ -600,11 +600,11 @@ If MODE is not set, try to find mode automatically."
                     text)))
       (require 'font-lock)
       ;; I find font-lock a bit too verbose.
-      (let ((font-lock-verbose nil))
+      (let ((font-lock-verbose nil)
+           (font-lock-support-mode nil))
        ;; Disable support modes, e.g., jit-lock, lazy-lock, etc.
        ;; Note: XEmacs people use `font-lock-mode-hook' to run those modes.
        (set (make-local-variable 'font-lock-mode-hook) nil)
-       (set (make-local-variable 'font-lock-support-mode) nil)
         (setq buffer-file-name (mm-handle-filename handle))
         (set (make-local-variable 'enable-local-variables) nil)
        (with-demoted-errors