changeset 75568:146ba0f8974c

(image-mode-maybe): Prevent magic-mode-alist from interfering with attempt to set major mode from modified auto-mode-alist.
author Jason Rumney <jasonr@gnu.org>
date Wed, 31 Jan 2007 12:37:08 +0000
parents 826405240527
children 36d25325f7ef
files lisp/image-mode.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/image-mode.el	Wed Jan 31 12:34:01 2007 +0000
+++ b/lisp/image-mode.el	Wed Jan 31 12:37:08 2007 +0000
@@ -105,7 +105,8 @@
 			 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))))