* bug#10775: Feature request: avoid revert question in `find-file-noselect'
@ 2012-02-10 2:47 Eli Barzilay
2012-02-10 13:13 ` bug#10775: Feature request: avoid revert question in`find-file-noselect' Drew Adams
2021-07-16 12:31 ` bug#10775: Feature request: avoid revert question in `find-file-noselect' Lars Ingebrigtsen
0 siblings, 2 replies; 4+ messages in thread
From: Eli Barzilay @ 2012-02-10 2:47 UTC (permalink / raw
To: 10775
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!
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#10775: Feature request: avoid revert question in`find-file-noselect'
2012-02-10 2:47 bug#10775: Feature request: avoid revert question in `find-file-noselect' Eli Barzilay
@ 2012-02-10 13:13 ` Drew Adams
2012-02-15 13:06 ` Eli Barzilay
2021-07-16 12:31 ` bug#10775: Feature request: avoid revert question in `find-file-noselect' Lars Ingebrigtsen
1 sibling, 1 reply; 4+ messages in thread
From: Drew Adams @ 2012-02-10 13:13 UTC (permalink / raw
To: 'Eli Barzilay', 10775
Sounds similar to bug #10726.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#10775: Feature request: avoid revert question in`find-file-noselect'
2012-02-10 13:13 ` bug#10775: Feature request: avoid revert question in`find-file-noselect' Drew Adams
@ 2012-02-15 13:06 ` Eli Barzilay
0 siblings, 0 replies; 4+ messages in thread
From: Eli Barzilay @ 2012-02-15 13:06 UTC (permalink / raw
To: Drew Adams; +Cc: 10775
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!
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#10775: Feature request: avoid revert question in `find-file-noselect'
2012-02-10 2:47 bug#10775: Feature request: avoid revert question in `find-file-noselect' Eli Barzilay
2012-02-10 13:13 ` bug#10775: Feature request: avoid revert question in`find-file-noselect' Drew Adams
@ 2021-07-16 12:31 ` Lars Ingebrigtsen
1 sibling, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-16 12:31 UTC (permalink / raw
To: Eli Barzilay; +Cc: 10775
Eli Barzilay <eli@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-16 12:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-10 2:47 bug#10775: Feature request: avoid revert question in `find-file-noselect' Eli Barzilay
2012-02-10 13:13 ` bug#10775: Feature request: avoid revert question in`find-file-noselect' Drew Adams
2012-02-15 13:06 ` Eli Barzilay
2021-07-16 12:31 ` bug#10775: Feature request: avoid revert question in `find-file-noselect' Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.