summaryrefslogtreecommitdiff
path: root/lisp/gnus
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2020-02-06 07:50:29 -0800
committerGlenn Morris <rgm@gnu.org>2020-02-06 07:50:29 -0800
commit68d43392a65186a944c839dc576b2b01deafbb0d (patch)
tree2392fb385569e10ad9d4d0ab2a48a1771131bf4e /lisp/gnus
parentcf14fa0427d6f490972521f7a55134e7139117c6 (diff)
parent09eed01afb4968a93247fb8eb7b5301a5bfb6342 (diff)
downloademacs-68d43392a65186a944c839dc576b2b01deafbb0d.tar.gz
Merge from origin/emacs-27
09eed01afb Wrap some set-auto-mode calls with delay-mode-hooks (bug#3... 4a0a114505 Support ido-vertical-mode better ef5fba9f40 Fix faces tab-bar and tab-line. 831508422e Cater for 3-argument version of pthread_setname_np f27187f963 Clarify lexvar restrictions for add-to-ordered-list, add-t... 32763dac46 Replace add-to-list to lexical variable with push (bug#39373) d07f177382 Clarify add-to-list documentation (bug#39373) d3d2ea927c MH-E: alter content in mh-display-msg, not mh-show-mode db7fa2546f Update documentation for mh-show-mode-hook d10be6bf28 Example goto-addr hook: MH-E already uses goto-address # Conflicts: # etc/NEWS
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/mm-view.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index a6be04e313d..828ac633dc5 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -497,7 +497,9 @@ If MODE is not set, try to find mode automatically."
(let ((auto-mode-alist
(delq (rassq 'doc-view-mode-maybe auto-mode-alist)
(copy-sequence auto-mode-alist))))
- (set-auto-mode)
+ ;; Don't run hooks that might assume buffer-file-name
+ ;; really associates buffer with a file (bug#39190).
+ (delay-mode-hooks (set-auto-mode))
(setq mode major-mode)))
;; Do not fontify if the guess mode is fundamental.
(unless (eq major-mode 'fundamental-mode)