aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-15 04:01:14 +0000
committerRichard M. Stallman1993-07-15 04:01:14 +0000
commit991298c3fc3516cce4de363df2ee9c44f8ab54ba (patch)
treef56f68960e88843edd2fb9f84093aeb659c14875
parenta9a5a9fa770eeae9709a608a1692db59daa5ce30 (diff)
downloademacs-991298c3fc3516cce4de363df2ee9c44f8ab54ba.tar.gz
emacs-991298c3fc3516cce4de363df2ee9c44f8ab54ba.zip
(server-done): Let save-buffer make the backup,
so that make-backup-files remains effective.
-rw-r--r--lisp/server.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 1084aee4093..6cc087c19bf 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -268,10 +268,12 @@ Then bury it, and return a suggested buffer to select next."
268 (if server-buffer-clients 268 (if server-buffer-clients
269 (progn 269 (progn
270 (if (server-temp-file-p buffer) 270 (if (server-temp-file-p buffer)
271 (progn (save-buffer) 271 ;; For a temp file, save, and do make a non-numeric backup
272 (write-region (point-min) (point-max) 272 ;; (unless make-backup-files is nil).
273 (concat buffer-file-name "~")) 273 (let ((version-control nil)
274 (kill-buffer buffer)) 274 (buffer-backed-up nil))
275 (save-buffer)
276 (kill-buffer buffer))
275 (if (and (buffer-modified-p) 277 (if (and (buffer-modified-p)
276 (y-or-n-p (concat "Save file " buffer-file-name "? "))) 278 (y-or-n-p (concat "Save file " buffer-file-name "? ")))
277 (save-buffer buffer))) 279 (save-buffer buffer)))
@@ -283,7 +285,9 @@ If a server buffer is current, it is marked \"done\" and optionally saved.
283When all of a client's buffers are marked as \"done\", the client is notified. 285When all of a client's buffers are marked as \"done\", the client is notified.
284 286
285Temporary files such as MH <draft> files are always saved and backed up, 287Temporary files such as MH <draft> files are always saved and backed up,
286no questions asked. The variable `server-temp-file-regexp' controls 288no questions asked. (The variable `make-backup-files', if nil, still
289inhibits a backup; you can set it locally in a particular buffer to
290prevent a backup for it.) The variable `server-temp-file-regexp' controls
287which filenames are considered temporary. 291which filenames are considered temporary.
288 292
289If invoked with a prefix argument, or if there is no server process running, 293If invoked with a prefix argument, or if there is no server process running,