Commit 30f1ca3b authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

lisp/gnus/mm-view.el (mm-display-inline-fontify): Make the working buffer...

lisp/gnus/mm-view.el (mm-display-inline-fontify): Make the working buffer temporarily displayed when running a mode function (at least org-mode requires it)
parent 58e6bac8
2014-08-21 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-view.el (mm-display-inline-fontify): Make the working buffer
temporarily displayed when running a mode function (at least org-mode
requires it).
2014-08-14 Alan Schmitt <alan.schmitt@polytechnique.org>
 
* gnus-sum.el (gnus-summary-expire-articles): Functions registered to
......
......@@ -513,7 +513,9 @@ If MODE is not set, try to find mode automatically."
(set (make-local-variable 'enable-local-variables) nil)
(with-demoted-errors
(if mode
(funcall mode)
(save-window-excursion
(switch-to-buffer (current-buffer))
(funcall mode))
(let ((auto-mode-alist
(delq (rassq 'doc-view-mode-maybe auto-mode-alist)
(copy-sequence auto-mode-alist))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment