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 /lisp | |
| 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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/files.el | 11 |
1 files changed, 8 insertions, 3 deletions
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. |