]> git.eshelyaron.com Git - emacs.git/commitdiff
(image-mode-maybe): Prevent magic-mode-alist from
authorJason Rumney <jasonr@gnu.org>
Wed, 31 Jan 2007 12:37:08 +0000 (12:37 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 31 Jan 2007 12:37:08 +0000 (12:37 +0000)
interfering with attempt to set major mode from modified
auto-mode-alist.

lisp/image-mode.el

index 3e10afcbfeba548cfd9ab15a58b0e35d4dfb8380..13a689b606144c8bcb24b8c98f5e1d7e7f242651 100644 (file)
@@ -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))))