aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-04-14 20:48:44 +0000
committerStefan Monnier2003-04-14 20:48:44 +0000
commit4e16371510d74a74dce88bc7392254d8fdf8a14d (patch)
tree6f2696d8a140bff119f24b8bf0e17ff2a67dac80
parenta3d80d4a08f5bbc3d428e7df265aa46f3cab64cb (diff)
downloademacs-4e16371510d74a74dce88bc7392254d8fdf8a14d.tar.gz
emacs-4e16371510d74a74dce88bc7392254d8fdf8a14d.zip
*** empty log message ***
-rw-r--r--lisp/files.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/files.el b/lisp/files.el
index d11014a9a0c..9bb2de41993 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1559,7 +1559,9 @@ in that case, this function acts as if `enable-local-variables' were t."
1559 ("\\.c\\'" . c-mode) 1559 ("\\.c\\'" . c-mode)
1560 ("\\.h\\'" . c-mode) 1560 ("\\.h\\'" . c-mode)
1561 ("\\.tex\\'" . tex-mode) 1561 ("\\.tex\\'" . tex-mode)
1562 ("\\.ins\\'" . tex-mode) ;Installation files for TeX packages.
1562 ("\\.ltx\\'" . latex-mode) 1563 ("\\.ltx\\'" . latex-mode)
1564 ("\\.dtx\\'" . doctex-mode)
1563 ("\\.el\\'" . emacs-lisp-mode) 1565 ("\\.el\\'" . emacs-lisp-mode)
1564 ("\\.scm\\'" . scheme-mode) 1566 ("\\.scm\\'" . scheme-mode)
1565 ("\\.l\\'" . lisp-mode) 1567 ("\\.l\\'" . lisp-mode)
@@ -3421,7 +3423,7 @@ that is more recent than the visited file.
3421 3423
3422This command also works for special buffers that contain text which 3424This command also works for special buffers that contain text which
3423doesn't come from a file, but reflects some other data base instead: 3425doesn't come from a file, but reflects some other data base instead:
3424for example, Dired buffers and buffer-list buffers. In these cases, 3426for example, Dired buffers and `buffer-list' buffers. In these cases,
3425it reconstructs the buffer contents from the appropriate data base. 3427it reconstructs the buffer contents from the appropriate data base.
3426 3428
3427When called from Lisp, the first argument is IGNORE-AUTO; only offer 3429When called from Lisp, the first argument is IGNORE-AUTO; only offer
@@ -3533,9 +3535,8 @@ non-nil, it is called instead of rereading visited file contents."
3533 ;; Run after-revert-hook as it was before we reverted. 3535 ;; Run after-revert-hook as it was before we reverted.
3534 (setq-default revert-buffer-internal-hook global-hook) 3536 (setq-default revert-buffer-internal-hook global-hook)
3535 (if local-hook-p 3537 (if local-hook-p
3536 (progn 3538 (set (make-local-variable 'revert-buffer-internal-hook)
3537 (make-local-variable 'revert-buffer-internal-hook) 3539 local-hook)
3538 (setq revert-buffer-internal-hook local-hook))
3539 (kill-local-variable 'revert-buffer-internal-hook)) 3540 (kill-local-variable 'revert-buffer-internal-hook))
3540 (run-hooks 'revert-buffer-internal-hook)) 3541 (run-hooks 'revert-buffer-internal-hook))
3541 t))))) 3542 t)))))
@@ -3553,13 +3554,14 @@ non-nil, it is called instead of rereading visited file contents."
3553 (interactive "FRecover file: ") 3554 (interactive "FRecover file: ")
3554 (setq file (expand-file-name file)) 3555 (setq file (expand-file-name file))
3555 (if (auto-save-file-name-p (file-name-nondirectory file)) 3556 (if (auto-save-file-name-p (file-name-nondirectory file))
3556 (error "%s is an auto-save file" file)) 3557 (error "%s is an auto-save file" (abbreviate-file-name file)))
3557 (let ((file-name (let ((buffer-file-name file)) 3558 (let ((file-name (let ((buffer-file-name file))
3558 (make-auto-save-file-name)))) 3559 (make-auto-save-file-name))))
3559 (cond ((if (file-exists-p file) 3560 (cond ((if (file-exists-p file)
3560 (not (file-newer-than-file-p file-name file)) 3561 (not (file-newer-than-file-p file-name file))
3561 (not (file-exists-p file-name))) 3562 (not (file-exists-p file-name)))
3562 (error "Auto-save file %s not current" file-name)) 3563 (error "Auto-save file %s not current"
3564 (abbreviate-file-name file-name)))
3563 ((save-window-excursion 3565 ((save-window-excursion
3564 (with-output-to-temp-buffer "*Directory*" 3566 (with-output-to-temp-buffer "*Directory*"
3565 (buffer-disable-undo standard-output) 3567 (buffer-disable-undo standard-output)