aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles A. Roelli2018-03-11 11:48:08 +0100
committerCharles A. Roelli2018-03-11 11:48:08 +0100
commit806a0c77490e2f997b3498829c8d63a00e504b6b (patch)
tree593b3e54ce697e51224222fb670ce44cbf0c311e
parent9bef4ef45732d2f2e2a917dcd5659fb1767a0e5d (diff)
downloademacs-806a0c77490e2f997b3498829c8d63a00e504b6b.tar.gz
emacs-806a0c77490e2f997b3498829c8d63a00e504b6b.zip
Unify documentation on 'save-some-buffers'
* doc/emacs/files.texi (Save Commands): Include some more keys that can be used in 'save-some-buffers'. * lisp/files.el (save-some-buffers): Include the same keys as above, and document all missing ones.
-rw-r--r--doc/emacs/files.texi3
-rw-r--r--lisp/files.el11
2 files changed, 11 insertions, 3 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index fd35096f965..77bdb6ee448 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -400,11 +400,14 @@ possible responses are analogous to those of @code{query-replace}:
400 400
401@table @kbd 401@table @kbd
402@item y 402@item y
403@item @key{SPC}
403Save this buffer and ask about the rest of the buffers. 404Save this buffer and ask about the rest of the buffers.
404@item n 405@item n
406@item @key{DEL}
405Don't save this buffer, but ask about the rest of the buffers. 407Don't save this buffer, but ask about the rest of the buffers.
406@item ! 408@item !
407Save this buffer and all the rest with no more questions. 409Save this buffer and all the rest with no more questions.
410@item q
408@c following generates acceptable underfull hbox 411@c following generates acceptable underfull hbox
409@item @key{RET} 412@item @key{RET}
410Terminate @code{save-some-buffers} without any more saving. 413Terminate @code{save-some-buffers} without any more saving.
diff --git a/lisp/files.el b/lisp/files.el
index b887a34791a..fbd3425cbb5 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5209,9 +5209,14 @@ about certain files that you'd usually rather not save."
5209 5209
5210(defun save-some-buffers (&optional arg pred) 5210(defun save-some-buffers (&optional arg pred)
5211 "Save some modified file-visiting buffers. Asks user about each one. 5211 "Save some modified file-visiting buffers. Asks user about each one.
5212You can answer `y' to save, `n' not to save, `C-r' to look at the 5212You can answer `y' or SPC to save, `n' or DEL not to save, `C-r'
5213buffer in question with `view-buffer' before deciding or `d' to 5213to look at the buffer in question with `view-buffer' before
5214view the differences using `diff-buffer-with-file'. 5214deciding, `d' to view the differences using
5215`diff-buffer-with-file', `!' to save the buffer and all remaining
5216buffers without any further querying, `.' to save only the
5217current buffer and skip the remaining ones and `q' or RET to exit
5218the function without saving any more buffers. `C-h' displays a
5219help message describing these options.
5215 5220
5216This command first saves any buffers where `buffer-save-without-query' is 5221This command first saves any buffers where `buffer-save-without-query' is
5217non-nil, without asking. 5222non-nil, without asking.