From: Jason Rumney Date: Wed, 31 Jan 2007 12:37:08 +0000 (+0000) Subject: (image-mode-maybe): Prevent magic-mode-alist from X-Git-Tag: emacs-pretest-22.0.94~485 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9fce2d717b7ee8ed4326ebb99505eb84ee6535d3;p=emacs.git (image-mode-maybe): Prevent magic-mode-alist from interfering with attempt to set major mode from modified auto-mode-alist. --- diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 3e10afcbfeb..13a689b6061 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -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))))