aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-01-04 02:13:37 +0000
committerRichard M. Stallman2002-01-04 02:13:37 +0000
commit0ba5894bf19b4f496020c386b9ea8cd098cdbefc (patch)
treed9c37f7d18e873008edb048439bf0dd3be6c780a
parent5860ba6e6c0b4f9d0aa953beeddc68f02a23c5a8 (diff)
downloademacs-0ba5894bf19b4f496020c386b9ea8cd098cdbefc.tar.gz
emacs-0ba5894bf19b4f496020c386b9ea8cd098cdbefc.zip
(basic-save-buffer): Undo previous change.
-rw-r--r--lisp/files.el11
1 files changed, 3 insertions, 8 deletions
diff --git a/lisp/files.el b/lisp/files.el
index a83bf037b1b..ff47462f9ca 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2606,7 +2606,6 @@ After saving the buffer, this function runs `after-save-hook'."
2606 (set-buffer (buffer-base-buffer))) 2606 (set-buffer (buffer-base-buffer)))
2607 (if (buffer-modified-p) 2607 (if (buffer-modified-p)
2608 (let ((recent-save (recent-auto-save-p)) 2608 (let ((recent-save (recent-auto-save-p))
2609 msg
2610 setmodes tempsetmodes) 2609 setmodes tempsetmodes)
2611 ;; On VMS, rename file and buffer to get rid of version number. 2610 ;; On VMS, rename file and buffer to get rid of version number.
2612 (if (and (eq system-type 'vax-vms) 2611 (if (and (eq system-type 'vax-vms)
@@ -2653,18 +2652,14 @@ After saving the buffer, this function runs `after-save-hook'."
2653 (save-excursion 2652 (save-excursion
2654 (goto-char (point-max)) 2653 (goto-char (point-max))
2655 (insert ?\n)))) 2654 (insert ?\n))))
2656 (setq msg (current-message))
2657 ;; Support VC version backups. 2655 ;; Support VC version backups.
2658 (vc-before-save) 2656 (vc-before-save)
2659 (or (run-hook-with-args-until-success 'write-contents-hooks) 2657 (or (run-hook-with-args-until-success 'write-contents-hooks)
2660 (run-hook-with-args-until-success 'local-write-file-hooks) 2658 (run-hook-with-args-until-success 'local-write-file-hooks)
2661 (run-hook-with-args-until-success 'write-file-hooks) 2659 (run-hook-with-args-until-success 'write-file-hooks)
2662 (progn 2660 ;; If a hook returned t, file is already "written".
2663 (unless (equal msg (current-message)) 2661 ;; Otherwise, write it the usual way now.
2664 (sit-for 2)) 2662 (setq setmodes (basic-save-buffer-1)))
2665 ;; If a hook returned t, file is already "written".
2666 ;; Otherwise, write it the usual way now.
2667 (setq setmodes (basic-save-buffer-1))))
2668 ;; Now we have saved the current buffer. Let's make sure 2663 ;; Now we have saved the current buffer. Let's make sure
2669 ;; that buffer-file-coding-system is fixed to what 2664 ;; that buffer-file-coding-system is fixed to what
2670 ;; actually used for saving by binding it locally. 2665 ;; actually used for saving by binding it locally.