GNU bug report logs - #10775
Feature request: avoid revert question in `find-file-noselect'

Previous Next

Package: emacs;

Reported by: Eli Barzilay <eli <at> barzilay.org>

Date: Fri, 10 Feb 2012 02:49:02 UTC

Severity: wishlist

Fixed in version 28.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 10775 in the body.
You can then email your comments to 10775 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-gnu-emacs <at> gnu.org:
bug#10775; Package emacs. (Fri, 10 Feb 2012 02:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eli Barzilay <eli <at> barzilay.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 10 Feb 2012 02:49:02 GMT) Full text and rfc822 format available.

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

From: Eli Barzilay <eli <at> barzilay.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Feature request: avoid revert question in `find-file-noselect'
Date: Thu, 9 Feb 2012 21:47:07 -0500
The code in `find-file-noselect' will ask about reverting a buffer, a
question that pops up in several contexts that lead to that function.
When the question pops up, the buffer is still not visible so it's
hard to make a decision (perhaps some process changed the file and I'd
like to switch to the buffer to save its contents first?).

It would be nice if there was some option that would make it just
display a warning about the change -- so I know that I can now revert
it in the usual way (as in touching the contents).  That would be much
more conveniet than answering "no".  (Personally, I just have a "don't
touch my file" reflex that translates into C-g, then switch to the
open buffer, then revert it.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10775; Package emacs. (Fri, 10 Feb 2012 13:16:01 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Barzilay'" <eli <at> barzilay.org>, <10775 <at> debbugs.gnu.org>
Subject: RE: bug#10775: Feature request: avoid revert question
	in`find-file-noselect'
Date: Fri, 10 Feb 2012 05:13:55 -0800
Sounds similar to bug #10726.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10775; Package emacs. (Wed, 15 Feb 2012 13:09:02 GMT) Full text and rfc822 format available.

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

From: Eli Barzilay <eli <at> barzilay.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 10775 <at> debbugs.gnu.org
Subject: RE: bug#10775: Feature request: avoid revert question
	in`find-file-noselect'
Date: Wed, 15 Feb 2012 08:06:44 -0500
On Friday, Drew Adams wrote:
> Sounds similar to bug #10726.

Similar, but I don't think that it's the same bug.  In my case, I
really want the interactive version to avoid asking the question and
instead just show me a message about it; possibly with a `ding', maybe
even a non-macro-terminating one, which is what I hacked the function
to do in my own environment.  (In fact, that #10726 sounds like more
of a real bug, where this one is strictly a feature request.)

A nice way to resolve this would be to have a variable that can hold
`ask' to do the same as now, `nil' to do nothing, or a function that
will get called (making it possible to do more things like
automatically reverting the buffer).

I'd be happy to submit such a simple patch if it helps.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10775; Package emacs. (Fri, 16 Jul 2021 12:32:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Barzilay <eli <at> barzilay.org>
Cc: 10775 <at> debbugs.gnu.org
Subject: Re: bug#10775: Feature request: avoid revert question in
 `find-file-noselect'
Date: Fri, 16 Jul 2021 14:31:17 +0200
Eli Barzilay <eli <at> barzilay.org> writes:

> It would be nice if there was some option that would make it just
> display a warning about the change -- so I know that I can now revert
> it in the usual way (as in touching the contents).  That would be much
> more conveniet than answering "no". 

Makes sense to me, so I've added this to Emacs 28 under the name
'query-about-changed-file'.

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




bug marked as fixed in version 28.1, send any further explanations to 10775 <at> debbugs.gnu.org and Eli Barzilay <eli <at> barzilay.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 16 Jul 2021 12:32:02 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. (Sat, 14 Aug 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 255 days ago.

Previous Next


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