* bug#10229: save-some-buffers, -action-alist
@ 2011-12-06 8:50 jidanni
2011-12-07 4:16 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: jidanni @ 2011-12-06 8:50 UTC (permalink / raw)
To: 10229
C-x s runs the command save-some-buffers, which is an interactive
compiled Lisp function in `files.el'.
It is bound to C-x s.
(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'.
OK, but you forgot one: plain old visit-the-buffer.
C-r lets you look at it but you are still in the minibuffer.
So you hit C-g and ... you can't see it any more.
This command first saves any buffers where `buffer-save-without-query' is
non-nil, without asking.
Optional argument (the prefix) non-nil means save all with no questions.
Optional second argument PRED determines which buffers are considered:
If PRED is nil, all the file-visiting buffers are considered.
If PRED is t, then certain non-file buffers will also be considered.
If PRED is a zero-argument function, it indicates for each buffer whether
to consider it or not when called with that buffer current.
See `save-some-buffers-action-alist' if you want to
change the additional actions you can take on files.
Well C-h v save-some-buffers-action-alist shows some horrid byte code.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#10229: save-some-buffers, -action-alist
2011-12-06 8:50 bug#10229: save-some-buffers, -action-alist jidanni
@ 2011-12-07 4:16 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2011-12-07 4:16 UTC (permalink / raw)
To: 10229
On 12/6/11 1:50 AM, jidanni@jidanni.org wrote:
> C-x s runs the command save-some-buffers, which is an interactive
> compiled Lisp function in `files.el'.
>
> It is bound to C-x s.
>
> (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'.
>
> OK, but you forgot one: plain old visit-the-buffer.
>
> C-r lets you look at it but you are still in the minibuffer.
That should not be. The buffer should be selected.
> So you hit C-g and ... you can't see it any more.
`q' is the usual way to exit View mode.
> This command first saves any buffers where `buffer-save-without-query' is
> non-nil, without asking.
>
> Optional argument (the prefix) non-nil means save all with no questions.
> Optional second argument PRED determines which buffers are considered:
> If PRED is nil, all the file-visiting buffers are considered.
> If PRED is t, then certain non-file buffers will also be considered.
> If PRED is a zero-argument function, it indicates for each buffer whether
> to consider it or not when called with that buffer current.
>
> See `save-some-buffers-action-alist' if you want to
> change the additional actions you can take on files.
>
> Well C-h v save-some-buffers-action-alist shows some horrid byte code.
Click on the link to files.el, which reveals the source code.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-07 4:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06 8:50 bug#10229: save-some-buffers, -action-alist jidanni
2011-12-07 4:16 ` Kevin Rodgers
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).