From 9fce2d717b7ee8ed4326ebb99505eb84ee6535d3 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Wed, 31 Jan 2007 12:37:08 +0000 Subject: [PATCH] (image-mode-maybe): Prevent magic-mode-alist from interfering with attempt to set major mode from modified auto-mode-alist. --- lisp/image-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))) -- 2.39.2