save-buffers-kill-terminal

save-buffers-kill-terminal is an interactive compiled Lisp function in `files.el'.

It is bound to C-x C-c, <menu-bar> <file> <exit-emacs>.

(save-buffers-kill-terminal &optional ARG)

Offer to save each buffer, then kill the current connection.
If the current frame has no client, kill Emacs itself.

With prefix ARG, silently save all file-visiting buffers, then kill.

If emacsclient was started with a list of filenames to edit, then
only these files will be asked to be saved.