1
0
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:
Jason Rumney 2007-01-31 12:37:08 +00:00
parent edcacc1c14
commit 9fce2d717b

View File

@ -105,7 +105,8 @@ information on these modes."
elt)) elt))
auto-mode-alist)))) auto-mode-alist))))
(if (assoc-default buffer-file-name mode-alist 'string-match) (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) (set-auto-mode)
(image-minor-mode t)) (image-minor-mode t))
(image-mode)))) (image-mode))))