# HG changeset patch # User Chong Yidong # Date 1179765807 0 # Node ID 947265eed15ccfd8871ca590208b3922f29a6017 # Parent b808e2e86f98eb967f1867237e85ad84f52a7276 (magic-mode-alist): Remove image-type-auto-detected-p. (magic-fallback-mode-alist): Add image-type-auto-detected-p. diff -r b808e2e86f98 -r 947265eed15c lisp/files.el --- a/lisp/files.el Mon May 21 16:43:13 2007 +0000 +++ b/lisp/files.el Mon May 21 16:43:27 2007 +0000 @@ -2119,8 +2119,7 @@ of the regular expression. The mode is then determined as the mode associated with that interpreter in `interpreter-mode-alist'.") -(defvar magic-mode-alist - `((image-type-auto-detected-p . image-mode)) +(defvar magic-mode-alist nil "Alist of buffer beginnings vs. corresponding major mode functions. Each element looks like (REGEXP . FUNCTION) or (MATCH-FUNCTION . FUNCTION). After visiting a file, if REGEXP matches the text at the beginning of the @@ -2133,7 +2132,8 @@ (put 'magic-mode-alist 'risky-local-variable t) (defvar magic-fallback-mode-alist - `(;; The < comes before the groups (but the first) to reduce backtracking. + `((image-type-auto-detected-p . image-mode) + ;; The < comes before the groups (but the first) to reduce backtracking. ;; TODO: UTF-16