diff options
| author | Richard M. Stallman | 1993-07-15 04:01:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-15 04:01:14 +0000 |
| commit | 991298c3fc3516cce4de363df2ee9c44f8ab54ba (patch) | |
| tree | f56f68960e88843edd2fb9f84093aeb659c14875 | |
| parent | a9a5a9fa770eeae9709a608a1692db59daa5ce30 (diff) | |
| download | emacs-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.el | 14 |
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. | |||
| 283 | When all of a client's buffers are marked as \"done\", the client is notified. | 285 | When all of a client's buffers are marked as \"done\", the client is notified. |
| 284 | 286 | ||
| 285 | Temporary files such as MH <draft> files are always saved and backed up, | 287 | Temporary files such as MH <draft> files are always saved and backed up, |
| 286 | no questions asked. The variable `server-temp-file-regexp' controls | 288 | no questions asked. (The variable `make-backup-files', if nil, still |
| 289 | inhibits a backup; you can set it locally in a particular buffer to | ||
| 290 | prevent a backup for it.) The variable `server-temp-file-regexp' controls | ||
| 287 | which filenames are considered temporary. | 291 | which filenames are considered temporary. |
| 288 | 292 | ||
| 289 | If invoked with a prefix argument, or if there is no server process running, | 293 | If invoked with a prefix argument, or if there is no server process running, |