[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/files.el,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/files.el,v |
Date: |
Mon, 21 May 2007 16:43:27 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 07/05/21 16:43:27
Index: files.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/files.el,v
retrieving revision 1.900
retrieving revision 1.901
diff -u -b -r1.900 -r1.901
--- files.el 19 May 2007 23:44:43 -0000 1.900
+++ files.el 21 May 2007 16:43:27 -0000 1.901
@@ -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 <?xml may be preceded by a BOM 0xff 0xfe or 0xfe 0xff.
;; We use [ \t\r\n] instead of `\\s ' to make regex overflow less likely.
(,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Miles Bader, 2007/05/11
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Juanma Barranquero, 2007/05/14
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Miles Bader, 2007/05/16
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Dan Nicolaescu, 2007/05/19
- [Emacs-diffs] Changes to emacs/lisp/files.el,v,
Chong Yidong <=
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Glenn Morris, 2007/05/22
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Miles Bader, 2007/05/24