aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-08-09 13:35:12 +0000
committerRichard M. Stallman2005-08-09 13:35:12 +0000
commite8f30180f4fad05b793829966e4cb78539f38d33 (patch)
treeff98d33b34cefae2d5c199c3e0d76311fa56f809
parent61298e176c1a1e27aa09c6531b54622c5aff3bbd (diff)
downloademacs-e8f30180f4fad05b793829966e4cb78539f38d33.tar.gz
emacs-e8f30180f4fad05b793829966e4cb78539f38d33.zip
(find-file-noselect): Don't call set-buffer-major-mode.
(find-file-noselect-1): Call it here, only if RAWFILE. (normal-mode): Always set some major mode. (save-some-buffers-action-alist): Change some explanation strings. (file-name-non-special): In the `quote' method, use unwind-protect.
-rw-r--r--lisp/ChangeLog19
-rw-r--r--lisp/files.el11
2 files changed, 25 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bdf55d10e9f..1fa27e44974 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,24 @@
12005-08-09 Richard M. Stallman <rms@gnu.org> 12005-08-09 Richard M. Stallman <rms@gnu.org>
2 2
3 * files.el (find-file-noselect): Don't call set-buffer-major-mode.
4 (find-file-noselect-1): Call it here, only if RAWFILE.
5 (normal-mode): Always set some major mode.
6 (save-some-buffers-action-alist): Change some explanation strings.
7 (file-name-non-special): In the `quote' method, use unwind-protect.
8
92005-08-09 Magnus Henoch <mange@freemail.hu>
10
11 * textmodes/ispell.el (aspell-have-dictionaries): New variable.
12 (aspell-find-dictionaries): New command.
13 (aspell-data-dir): New variable.
14 (aspell-find-data-dir): New function.
15 (aspell-find-dictionary): New function.
16 (ispell-valid-dictionary-list): Call aspell-find-dictionaries if
17 appropriate. Don't look for ispell dictionaries if we use
18 aspell.
19
202005-08-09 Richard M. Stallman <rms@gnu.org>
21
3 * progmodes/sql.el (sql-interactive-mode-map): Use fboundp. 22 * progmodes/sql.el (sql-interactive-mode-map): Use fboundp.
4 (sql-read-passwd): Use read-passwd. 23 (sql-read-passwd): Use read-passwd.
5 24
diff --git a/lisp/files.el b/lisp/files.el
index 8850928d94a..35afa099012 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1464,7 +1464,6 @@ the various files."
1464 buf) 1464 buf)
1465 ;; Create a new buffer. 1465 ;; Create a new buffer.
1466 (setq buf (create-file-buffer filename)) 1466 (setq buf (create-file-buffer filename))
1467 (set-buffer-major-mode buf)
1468 ;; find-file-noselect-1 may use a different buffer. 1467 ;; find-file-noselect-1 may use a different buffer.
1469 (find-file-noselect-1 buf filename nowarn 1468 (find-file-noselect-1 buf filename nowarn
1470 rawfile truename number)))))) 1469 rawfile truename number))))))
@@ -1538,6 +1537,7 @@ the various files."
1538 (progn 1537 (progn
1539 (set-buffer-multibyte nil) 1538 (set-buffer-multibyte nil)
1540 (setq buffer-file-coding-system 'no-conversion) 1539 (setq buffer-file-coding-system 'no-conversion)
1540 (set-buffer-major-mode buf)
1541 (make-local-variable 'find-file-literally) 1541 (make-local-variable 'find-file-literally)
1542 (setq find-file-literally t)) 1542 (setq find-file-literally t))
1543 (after-find-file error (not nowarn))) 1543 (after-find-file error (not nowarn)))
@@ -1727,7 +1727,7 @@ not set local variables (though we do notice a mode specified with -*-.)
1727or from Lisp without specifying the optional argument FIND-FILE; 1727or from Lisp without specifying the optional argument FIND-FILE;
1728in that case, this function acts as if `enable-local-variables' were t." 1728in that case, this function acts as if `enable-local-variables' were t."
1729 (interactive) 1729 (interactive)
1730 (or find-file (funcall (or default-major-mode 'fundamental-mode))) 1730 (funcall (or default-major-mode 'fundamental-mode))
1731 (let ((enable-local-variables (or (not find-file) enable-local-variables))) 1731 (let ((enable-local-variables (or (not find-file) enable-local-variables)))
1732 (report-errors "File mode specification error: %s" 1732 (report-errors "File mode specification error: %s"
1733 (set-auto-mode)) 1733 (set-auto-mode))
@@ -3450,9 +3450,9 @@ This requires the external program `diff' to be in your `exec-path'."
3450 (recursive-edit) 3450 (recursive-edit)
3451 ;; Return nil to ask about BUF again. 3451 ;; Return nil to ask about BUF again.
3452 nil) 3452 nil)
3453 "display the current buffer") 3453 "view this file")
3454 (?d diff-buffer-with-file 3454 (?d diff-buffer-with-file
3455 "show difference to last saved version")) 3455 "view changes in file"))
3456 "ACTION-ALIST argument used in call to `map-y-or-n-p'.") 3456 "ACTION-ALIST argument used in call to `map-y-or-n-p'.")
3457(put 'save-some-buffers-action-alist 'risky-local-variable t) 3457(put 'save-some-buffers-action-alist 'risky-local-variable t)
3458 3458
@@ -4844,7 +4844,8 @@ With prefix arg, silently save all file-visiting buffers, then kill."
4844 ((eq method 'add) 4844 ((eq method 'add)
4845 (concat "/:" (apply operation arguments))) 4845 (concat "/:" (apply operation arguments)))
4846 ((eq method 'quote) 4846 ((eq method 'quote)
4847 (prog1 (apply operation arguments) 4847 (unwind-protect
4848 (apply operation arguments)
4848 (setq buffer-file-name (concat "/:" buffer-file-name)))) 4849 (setq buffer-file-name (concat "/:" buffer-file-name))))
4849 ((eq method 'unquote-then-quote) 4850 ((eq method 'unquote-then-quote)
4850 (let (res) 4851 (let (res)