emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 806a0c7: Unify documentation on 'save-some-buffers'


From: Charles A. Roelli
Subject: [Emacs-diffs] master 806a0c7: Unify documentation on 'save-some-buffers'
Date: Sun, 11 Mar 2018 06:37:37 -0400 (EDT)

branch: master
commit 806a0c77490e2f997b3498829c8d63a00e504b6b
Author: Charles A. Roelli <address@hidden>
Commit: Charles A. Roelli <address@hidden>

    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.
---
 doc/emacs/files.texi |  3 +++
 lisp/files.el        | 11 ++++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index fd35096..77bdb6e 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}:
 
 @table @kbd
 @item y
address@hidden @key{SPC}
 Save this buffer and ask about the rest of the buffers.
 @item n
address@hidden @key{DEL}
 Don't save this buffer, but ask about the rest of the buffers.
 @item !
 Save this buffer and all the rest with no more questions.
address@hidden q
 @c following generates acceptable underfull hbox
 @item @key{RET}
 Terminate @code{save-some-buffers} without any more saving.
diff --git a/lisp/files.el b/lisp/files.el
index b887a34..fbd3425 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5209,9 +5209,14 @@ about certain files that you'd usually rather not save."
 
 (defun save-some-buffers (&optional arg pred)
   "Save some modified file-visiting buffers.  Asks user about each one.
-You can answer `y' to save, `n' not to save, `C-r' to look at the
-buffer in question with `view-buffer' before deciding or `d' to
-view the differences using `diff-buffer-with-file'.
+You can answer `y' or SPC to save, `n' or DEL not to save, `C-r'
+to look at the buffer in question with `view-buffer' before
+deciding, `d' to view the differences using
+`diff-buffer-with-file', `!' to save the buffer and all remaining
+buffers without any further querying, `.' to save only the
+current buffer and skip the remaining ones and `q' or RET to exit
+the function without saving any more buffers.  `C-h' displays a
+help message describing these options.
 
 This command first saves any buffers where `buffer-save-without-query' is
 non-nil, without asking.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]