[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/files.el
From: |
Luc Teirlinck |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/files.el |
Date: |
Fri, 13 May 2005 20:56:30 -0400 |
Index: emacs/lisp/files.el
diff -c emacs/lisp/files.el:1.768 emacs/lisp/files.el:1.769
*** emacs/lisp/files.el:1.768 Fri May 13 07:56:28 2005
--- emacs/lisp/files.el Sat May 14 00:56:30 2005
***************
*** 541,547 ****
the value of `default-directory'."
(unless dir
(setq dir default-directory))
! (read-file-name prompt dir (or default-dirname
(if initial (expand-file-name initial dir)
dir))
mustmatch initial
--- 541,547 ----
the value of `default-directory'."
(unless dir
(setq dir default-directory))
! (read-file-name prompt dir (or default-dirname
(if initial (expand-file-name initial dir)
dir))
mustmatch initial
***************
*** 1944,1950 ****
"Alist mapping interpreter names to major modes.
This is used for files whose first lines match `auto-mode-interpreter-regexp'.
Each element looks like (INTERPRETER . MODE).
! The car of each element is compared with
the name of the interpreter specified in the first line.
If it matches, mode MODE is selected.
--- 1944,1950 ----
"Alist mapping interpreter names to major modes.
This is used for files whose first lines match `auto-mode-interpreter-regexp'.
Each element looks like (INTERPRETER . MODE).
! The car of each element, a regular expression, is compared with
the name of the interpreter specified in the first line.
If it matches, mode MODE is selected.
***************
*** 1961,1973 ****
(defvar auto-mode-interpreter-regexp
"#![ \t]?\\([^ \t\n]*\
/bin/env[ \t]\\)?\\([^ \t\n]+\\)"
! "Regular expression matching interpreters, for file mode determination.
This regular expression is matched against the first line of a file
! to determine the file's mode in `set-auto-mode' when Emacs can't deduce
! a mode from the file's name. If it matches, the file is assumed to
! be interpreted by the interpreter matched by the second group of the
! regular expression. The mode is then determined as the mode associated
! with that interpreter in `interpreter-mode-alist'.")
(defvar magic-mode-alist
`(;; The < comes before the groups (but the first) to reduce backtracking.
--- 1961,1972 ----
(defvar auto-mode-interpreter-regexp
"#![ \t]?\\([^ \t\n]*\
/bin/env[ \t]\\)?\\([^ \t\n]+\\)"
! "Regexp matching interpreters, for file mode determination.
This regular expression is matched against the first line of a file
! to determine the file's mode in `set-auto-mode'. If it matches, the file
! is assumed to be interpreted by the interpreter matched by the second group
! of the regular expression. The mode is then determined as the mode
! associated with that interpreter in `interpreter-mode-alist'.")
(defvar magic-mode-alist
`(;; The < comes before the groups (but the first) to reduce backtracking.
- [Emacs-diffs] Changes to emacs/lisp/files.el, Richard M . Stallman, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/files.el, Luc Teirlinck, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/files.el, Eli Zaretskii, 2005/05/06
- [Emacs-diffs] Changes to emacs/lisp/files.el, Richard M . Stallman, 2005/05/10
- [Emacs-diffs] Changes to emacs/lisp/files.el, Stefan Monnier, 2005/05/11
- [Emacs-diffs] Changes to emacs/lisp/files.el, Luc Teirlinck, 2005/05/12
- [Emacs-diffs] Changes to emacs/lisp/files.el, Daniel Pfeiffer, 2005/05/13
- [Emacs-diffs] Changes to emacs/lisp/files.el,
Luc Teirlinck <=
- [Emacs-diffs] Changes to emacs/lisp/files.el, Luc Teirlinck, 2005/05/14
- [Emacs-diffs] Changes to emacs/lisp/files.el, Juanma Barranquero, 2005/05/17
- [Emacs-diffs] Changes to emacs/lisp/files.el, Daniel Pfeiffer, 2005/05/20
- [Emacs-diffs] Changes to emacs/lisp/files.el, Stefan Monnier, 2005/05/31