Commit ffdd2796 authored by Richard M. Stallman's avatar Richard M. Stallman

(server-done): If buffer visits no file, don't offer save.

parent 6811a757
......@@ -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)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment