summaryrefslogtreecommitdiff
path: root/lisp/server.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-04-13 06:12:34 +0000
committerRichard M. Stallman <rms@gnu.org>1997-04-13 06:12:34 +0000
commit8ec206a97b6ce3ab37ce4c507717556015df4287 (patch)
treedbcf5ce7a84b4d3605f6851f376b3187d953394a /lisp/server.el
parenta64bd3934e21ad62d6cb254fe919f9d301c05378 (diff)
downloademacs-8ec206a97b6ce3ab37ce4c507717556015df4287.tar.gz
(server-done): If buffer visits no file, don't offer save.
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 78f10f422df..dcd025b3d03 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -353,6 +353,7 @@ or nil. KILLED is t if we killed the BUFFER (because it was a temp file)."
(buffer-backed-up nil))
(save-buffer))
(if (and (buffer-modified-p)
+ buffer-file-name
(y-or-n-p (concat "Save file " buffer-file-name "? ")))
(save-buffer buffer)))
(server-buffer-done buffer)))))