GNU bug report logs - #10229
save-some-buffers, -action-alist

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 6 Dec 2011 08:54:02 UTC

Severity: wishlist

Tags: fixed

Merged with 3625, 24174, 42829

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

To reply to this bug, email your comments to 10229 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10229; Package emacs. (Tue, 06 Dec 2011 08:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 06 Dec 2011 08:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: save-some-buffers, -action-alist
Date: Tue, 06 Dec 2011 16:50:44 +0800
   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.




Forcibly Merged 3625 10229. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 06 Dec 2011 19:03:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10229; Package emacs. (Wed, 07 Dec 2011 04:17:02 GMT) Full text and rfc822 format available.

Message #10 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kevin Rodgers <kevin.d.rodgers <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#10229: save-some-buffers, -action-alist
Date: Tue, 06 Dec 2011 21:16:00 -0700
On 12/6/11 1:50 AM, jidanni <at> 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





Forcibly Merged 3625 10229 24174. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 07 Aug 2016 04:00:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 13 Oct 2019 19:42:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 3625 <at> debbugs.gnu.org and jidanni <at> jidanni.org Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 13 Oct 2019 19:42:03 GMT) Full text and rfc822 format available.

Forcibly Merged 3625 10229 24174 42829. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 12 Aug 2020 15:05:02 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.