mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-28 10:56:36 +00:00
(image-mode-maybe): Prevent magic-mode-alist from
interfering with attempt to set major mode from modified auto-mode-alist.
This commit is contained in:
parent
edcacc1c14
commit
9fce2d717b
@ -105,7 +105,8 @@ information on these modes."
|
||||
elt))
|
||||
auto-mode-alist))))
|
||||
(if (assoc-default buffer-file-name mode-alist 'string-match)
|
||||
(let ((auto-mode-alist mode-alist))
|
||||
(let ((auto-mode-alist mode-alist)
|
||||
(magic-mode-alist nil))
|
||||
(set-auto-mode)
|
||||
(image-minor-mode t))
|
||||
(image-mode))))
|
||||
|
Loading…
Reference in New Issue
Block a user