[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49869: Revert buffer? Yes/No/Maybe
From: |
Lars Ingebrigtsen |
Subject: |
bug#49869: Revert buffer? Yes/No/Maybe |
Date: |
Thu, 05 Aug 2021 12:43:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> I don't think we need to cater to personal preferences by adding new
> commands.
The `C-x x g' binding is new in Emacs 28, and we can bind it to a
command that we thing is a good one.
Eli Zaretskii <eliz@gnu.org> writes:
> And second, are you talking only about reverting when there are no
> unsaved changes? If so, what are the use cases when you need to do
> such a thing, and why?
When a file changes outside of Emacs. It happens a lot, especially
after doing "git pull".
But... looking at how Emacs handles this in other similar commands, I'm
not convinced that the `y e s RET' is excessive in `C-x x g': For
instance, if you `C-x C-f M-n RET' (which was the previous way to revert
the buffer (but didn't work reliably because of DWIM)), it'll also ask
you to type `y e s RET' afterwards.
So for user interface consistency, I think it might make sense to leave
`C-x x g' as is -- at least in the default case. Perhaps there should
be a user option to customise the level of prompting here.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#49869: Revert buffer? Yes/No/Maybe, Juri Linkov, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Lars Ingebrigtsen, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Andreas Schwab, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Eli Zaretskii, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Gregory Heytings, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Eli Zaretskii, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Gregory Heytings, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Eli Zaretskii, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe, Gregory Heytings, 2021/08/04
- bug#49869: Revert buffer? Yes/No/Maybe,
Lars Ingebrigtsen <=
- bug#49869: Revert buffer? Yes/No/Maybe, Gregory Heytings, 2021/08/05
- bug#49869: Revert buffer? Yes/No/Maybe, Lars Ingebrigtsen, 2021/08/06
- bug#49869: Revert buffer? Yes/No/Maybe, Juri Linkov, 2021/08/10
- bug#49869: [External] : bug#49869: Revert buffer? Yes/No/Maybe, Drew Adams, 2021/08/10
- bug#49869: Revert buffer? Yes/No/Maybe, Lars Ingebrigtsen, 2021/08/10
bug#49869: Revert buffer? Yes/No/Maybe, Juri Linkov, 2021/08/04