GNU bug report logs - #3625
save-some-buffers won't buzz off and let me just visit a file

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sat, 20 Jun 2009 03:50:04 UTC

Severity: wishlist

Tags: fixed

Merged with 10229, 24174, 42829

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3625 in the body.
You can then email your comments to 3625 AT debbugs.gnu.org in the normal way.

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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3625; Package emacs. (Sat, 20 Jun 2009 03:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 20 Jun 2009 03:50:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: save-some-buffers won't buzz off and let me just visit a file
Date: Sat, 20 Jun 2009 11:43:36 +0800
C-x s runs the command save-some-buffers,
which will ask
  Type SPC or `y' to save the current buffer;
  DEL or `n' to skip the current buffer;
  RET or `q' to give up on the save (skip all remaining buffers);
  C-g to quit (cancel the whole command);
  ! to save all remaining buffers;
  C-r to view this buffer;
  d to view changes in this buffer;
  or . (period) to save the current buffer and exit.
But nowhere in that list is there a choice to just let you visit that
buffer. E.g.,
  C-r to view this buffer;
still "waits out there in the parking lot (minibuffer) with the engine
running, waiting for you to come back out. He just won't buzz-off."

In GNU Emacs 23.0.94.1




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3625; Package emacs. (Sat, 20 Jun 2009 08:50:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 20 Jun 2009 08:50:03 GMT) Full text and rfc822 format available.

Message #10 received at 3625 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: jidanni <at> jidanni.org
Cc: 3625 <at> debbugs.gnu.org
Subject: Re: bug#3625: save-some-buffers won't buzz off and let me just visit a file
Date: Sat, 20 Jun 2009 10:44:53 +0200
On 2009-06-20 05:43 +0200, jidanni <at> jidanni.org wrote:

> C-x s runs the command save-some-buffers,
> which will ask
>   Type SPC or `y' to save the current buffer;
>   DEL or `n' to skip the current buffer;
>   RET or `q' to give up on the save (skip all remaining buffers);
>   C-g to quit (cancel the whole command);
>   ! to save all remaining buffers;
>   C-r to view this buffer;
>   d to view changes in this buffer;
>   or . (period) to save the current buffer and exit.
> But nowhere in that list is there a choice to just let you visit that
> buffer. E.g.,
>   C-r to view this buffer;
> still "waits out there in the parking lot (minibuffer) with the engine
> running, waiting for you to come back out. He just won't buzz-off."

This was done on purpose because somebody had complained about the
difficulties of recursive editing which is probably the only feasible
way to visit the buffer in this situation.  See bug #381¹.

Sven


¹ http://debbugs.gnu.org/381



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3625; Package emacs. (Sat, 20 Jun 2009 20:00:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 20 Jun 2009 20:00:11 GMT) Full text and rfc822 format available.

Message #15 received at 3625 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: jidanni <at> jidanni.org
To: svenjoac <at> gmx.de
Cc: 3625 <at> debbugs.gnu.org
Subject: Re: bug#3625: save-some-buffers won't buzz off and let me just visit a file
Date: Sun, 21 Jun 2009 03:56:18 +0800
SJ> This was done on purpose because somebody had complained about the
SJ> difficulties of recursive editing which is probably the only feasible
SJ> way to visit the buffer in this situation.  See bug #381¹.
SJ> ¹ http://debbugs.gnu.org/381

I see what I want then is the same as what I want now, an additional:

g: never mind saving anymore files, just let me visit that buffer now,
and don't bother waiting for me.

There must be some lisp way of doing that other than something like
system("exec emacsclient -n that_file&")?

We don't need save-some-buffers to do anything more at this point other
than call switch-to-buffer that_files_buffer, and then that's the end of
switch-to-buffer

OK, maybe what is making this impossible is
save-some-buffers-action-alist. But this is getting over my head.



Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Jan 2010 23:00:04 GMT) Full text and rfc822 format available.

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.

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.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3625; Package emacs. (Sun, 13 Oct 2019 19:42:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: jidanni <at> jidanni.org
Cc: 3625 <at> debbugs.gnu.org
Subject: Re: bug#3625: save-some-buffers won't buzz off and let me just
 visit a file
Date: Sun, 13 Oct 2019 21:41:42 +0200
jidanni <at> jidanni.org writes:

> C-x s runs the command save-some-buffers,
> which will ask
>   Type SPC or `y' to save the current buffer;
>   DEL or `n' to skip the current buffer;
>   RET or `q' to give up on the save (skip all remaining buffers);
>   C-g to quit (cancel the whole command);
>   ! to save all remaining buffers;
>   C-r to view this buffer;
>   d to view changes in this buffer;
>   or . (period) to save the current buffer and exit.
> But nowhere in that list is there a choice to just let you visit that
> buffer. E.g.,
>   C-r to view this buffer;
> still "waits out there in the parking lot (minibuffer) with the engine
> running, waiting for you to come back out. He just won't buzz-off."

That's a good idea -- exiting the query and popping to the buffer being
asked about is a pretty natural thing to do.

So I've now added it to Emacs 27, but it was surprisingly awkward to do,
based on how the actions are defined (a defvarred alist), what they can
return (just "don't do this" and "do this"), and the fact that
`save-some-buffers' is wrapped in a `save-window-excursion' that I think
is best left alone.

But I think I successfully hacked it together by mixing some dynamic
binding with some lexical binding in a kinda messy way.  If somebody has
a better idea how to do this that doesn't go through three indirections:
please be my guest.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 11 Nov 2019 12:24:08 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 305 days ago.

Previous Next


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