diff options
| author | Miles Bader | 2007-05-24 06:25:50 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-05-24 06:25:50 +0000 |
| commit | 274cb4e46d556c8b19e89d622065517bfb94db91 (patch) | |
| tree | 8c5762634b7822eb26b1ab53d18ac52865b40506 /lisp | |
| parent | 05587383a591082b6292cfc6464750e41483bbfe (diff) | |
| parent | 8a0b01bce92cdd602e96baf8e435a2f2f8e8f0ba (diff) | |
| download | emacs-274cb4e46d556c8b19e89d622065517bfb94db91.tar.gz emacs-274cb4e46d556c8b19e89d622065517bfb94db91.zip | |
Merge from emacs--rel--22
Patches applied:
* emacs--rel--22 (patch 24)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-767
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/files.el | 12 | ||||
| -rw-r--r-- | lisp/tar-mode.el | 4 |
3 files changed, 13 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d575e417465..f7e254153c3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -22,6 +22,10 @@ | |||
| 22 | * progmodes/compile.el (compilation-handle-exit): | 22 | * progmodes/compile.el (compilation-handle-exit): |
| 23 | `compilation-finish-function' may change the current buffer. | 23 | `compilation-finish-function' may change the current buffer. |
| 24 | 24 | ||
| 25 | 2007-05-22 Richard Stallman <rms@gnu.org> | ||
| 26 | |||
| 27 | * files.el (set-auto-mode): Doc fix. | ||
| 28 | |||
| 25 | 2007-05-22 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 29 | 2007-05-22 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 26 | 30 | ||
| 27 | * help-fns.el (find-source-lisp-file): New function. | 31 | * help-fns.el (find-source-lisp-file): New function. |
diff --git a/lisp/files.el b/lisp/files.el index c0443005dc2..9ce1f0a0471 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2171,10 +2171,11 @@ Also applies to `magic-fallback-mode-alist'.") | |||
| 2171 | (defun set-auto-mode (&optional keep-mode-if-same) | 2171 | (defun set-auto-mode (&optional keep-mode-if-same) |
| 2172 | "Select major mode appropriate for current buffer. | 2172 | "Select major mode appropriate for current buffer. |
| 2173 | 2173 | ||
| 2174 | This checks for a -*- mode tag in the buffer's text, checks the | 2174 | To find the right major mode, this function checks for a -*- mode tag, |
| 2175 | interpreter that runs this file against `interpreter-mode-alist', | 2175 | checks if it uses an interpreter listed in `interpreter-mode-alist', |
| 2176 | compares the buffer beginning against `magic-mode-alist', or | 2176 | matches the buffer beginning against `magic-mode-alist', |
| 2177 | compares the filename against the entries in `auto-mode-alist'. | 2177 | compares the filename against the entries in `auto-mode-alist', |
| 2178 | then matches the buffer beginning against `magic-fallback-mode-alist'. | ||
| 2178 | 2179 | ||
| 2179 | It does not check for the `mode:' local variable in the | 2180 | It does not check for the `mode:' local variable in the |
| 2180 | Local Variables section of the file; for that, use `hack-local-variables'. | 2181 | Local Variables section of the file; for that, use `hack-local-variables'. |
| @@ -2183,7 +2184,8 @@ If `enable-local-variables' is nil, this function does not check for a | |||
| 2183 | -*- mode tag. | 2184 | -*- mode tag. |
| 2184 | 2185 | ||
| 2185 | If the optional argument KEEP-MODE-IF-SAME is non-nil, then we | 2186 | If the optional argument KEEP-MODE-IF-SAME is non-nil, then we |
| 2186 | only set the major mode, if that would change it." | 2187 | set the major mode only if that would change it. In other words |
| 2188 | we don't actually set it to the same mode the buffer already has." | ||
| 2187 | ;; Look for -*-MODENAME-*- or -*- ... mode: MODENAME; ... -*- | 2189 | ;; Look for -*-MODENAME-*- or -*- ... mode: MODENAME; ... -*- |
| 2188 | (let (end done mode modes) | 2190 | (let (end done mode modes) |
| 2189 | ;; Find a -*- mode tag | 2191 | ;; Find a -*- mode tag |
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 5d5f13776a2..65e2b0f1c0b 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el | |||
| @@ -747,8 +747,8 @@ appear on disk when you save the tar-file's buffer." | |||
| 747 | ;; find-buffer-file-type-coding-system | 747 | ;; find-buffer-file-type-coding-system |
| 748 | ;; (defined on dos-w32.el) to act as if | 748 | ;; (defined on dos-w32.el) to act as if |
| 749 | ;; the file being extracted existed, so | 749 | ;; the file being extracted existed, so |
| 750 | ;; that the file's contents' encoding is | 750 | ;; that the file's contents' encoding and |
| 751 | ;; auto-detected. | 751 | ;; EOL format are auto-detected. |
| 752 | (let ((file-name-handler-alist | 752 | (let ((file-name-handler-alist |
| 753 | '(("" . tar-file-name-handler)))) | 753 | '(("" . tar-file-name-handler)))) |
| 754 | (car (find-operation-coding-system | 754 | (car (find-operation-coding-system |