Commit 0eef14bd authored by Chong Yidong's avatar Chong Yidong
Browse files

(save-buffers-kill-terminal): Args for

server-save-buffers-kill-terminal changed.
parent ac088d51
...@@ -5731,12 +5731,9 @@ With prefix ARG, silently save all file-visiting buffers, then kill. ...@@ -5731,12 +5731,9 @@ With prefix ARG, silently save all file-visiting buffers, then kill.
If emacsclient was started with a list of filenames to edit, then If emacsclient was started with a list of filenames to edit, then
only these files will be asked to be saved." only these files will be asked to be saved."
(interactive "P") (interactive "P")
(let ((proc (frame-parameter (selected-frame) 'client)) (if (frame-parameter (selected-frame) 'client)
(frame (selected-frame))) (server-save-buffers-kill-terminal arg)
(if (null proc) (save-buffers-kill-emacs arg)))
(save-buffers-kill-emacs)
(server-save-buffers-kill-terminal proc arg))))
;; We use /: as a prefix to "quote" a file name ;; We use /: as a prefix to "quote" a file name
;; so that magic file name handlers will not apply to it. ;; so that magic file name handlers will not apply to it.
......
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