diff options
| author | Charles A. Roelli | 2018-03-11 11:48:08 +0100 |
|---|---|---|
| committer | Charles A. Roelli | 2018-03-11 11:48:08 +0100 |
| commit | 806a0c77490e2f997b3498829c8d63a00e504b6b (patch) | |
| tree | 593b3e54ce697e51224222fb670ce44cbf0c311e | |
| parent | 9bef4ef45732d2f2e2a917dcd5659fb1767a0e5d (diff) | |
| download | emacs-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.texi | 3 | ||||
| -rw-r--r-- | lisp/files.el | 11 |
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} | ||
| 403 | Save this buffer and ask about the rest of the buffers. | 404 | Save this buffer and ask about the rest of the buffers. |
| 404 | @item n | 405 | @item n |
| 406 | @item @key{DEL} | ||
| 405 | Don't save this buffer, but ask about the rest of the buffers. | 407 | Don't save this buffer, but ask about the rest of the buffers. |
| 406 | @item ! | 408 | @item ! |
| 407 | Save this buffer and all the rest with no more questions. | 409 | Save 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} |
| 410 | Terminate @code{save-some-buffers} without any more saving. | 413 | Terminate @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. |
| 5212 | You can answer `y' to save, `n' not to save, `C-r' to look at the | 5212 | You can answer `y' or SPC to save, `n' or DEL not to save, `C-r' |
| 5213 | buffer in question with `view-buffer' before deciding or `d' to | 5213 | to look at the buffer in question with `view-buffer' before |
| 5214 | view the differences using `diff-buffer-with-file'. | 5214 | deciding, `d' to view the differences using |
| 5215 | `diff-buffer-with-file', `!' to save the buffer and all remaining | ||
| 5216 | buffers without any further querying, `.' to save only the | ||
| 5217 | current buffer and skip the remaining ones and `q' or RET to exit | ||
| 5218 | the function without saving any more buffers. `C-h' displays a | ||
| 5219 | help message describing these options. | ||
| 5215 | 5220 | ||
| 5216 | This command first saves any buffers where `buffer-save-without-query' is | 5221 | This command first saves any buffers where `buffer-save-without-query' is |
| 5217 | non-nil, without asking. | 5222 | non-nil, without asking. |