aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2007-05-24 06:25:50 +0000
committerMiles Bader2007-05-24 06:25:50 +0000
commit274cb4e46d556c8b19e89d622065517bfb94db91 (patch)
tree8c5762634b7822eb26b1ab53d18ac52865b40506 /lisp
parent05587383a591082b6292cfc6464750e41483bbfe (diff)
parent8a0b01bce92cdd602e96baf8e435a2f2f8e8f0ba (diff)
downloademacs-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/ChangeLog4
-rw-r--r--lisp/files.el12
-rw-r--r--lisp/tar-mode.el4
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
252007-05-22 Richard Stallman <rms@gnu.org>
26
27 * files.el (set-auto-mode): Doc fix.
28
252007-05-22 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 292007-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
2174This checks for a -*- mode tag in the buffer's text, checks the 2174To find the right major mode, this function checks for a -*- mode tag,
2175interpreter that runs this file against `interpreter-mode-alist', 2175checks if it uses an interpreter listed in `interpreter-mode-alist',
2176compares the buffer beginning against `magic-mode-alist', or 2176matches the buffer beginning against `magic-mode-alist',
2177compares the filename against the entries in `auto-mode-alist'. 2177compares the filename against the entries in `auto-mode-alist',
2178then matches the buffer beginning against `magic-fallback-mode-alist'.
2178 2179
2179It does not check for the `mode:' local variable in the 2180It does not check for the `mode:' local variable in the
2180Local Variables section of the file; for that, use `hack-local-variables'. 2181Local 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
2185If the optional argument KEEP-MODE-IF-SAME is non-nil, then we 2186If the optional argument KEEP-MODE-IF-SAME is non-nil, then we
2186only set the major mode, if that would change it." 2187set the major mode only if that would change it. In other words
2188we 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