[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49869: Revert buffer? Yes/No/Maybe
From: |
Juri Linkov |
Subject: |
bug#49869: Revert buffer? Yes/No/Maybe |
Date: |
Fri, 06 Aug 2021 02:33:55 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> The problem is that by default the length of the key sequence
>> when the user decides to revert the current buffer
>> is 7 keys:
>>
>> 'C-x x g y e s RET'
>>
>> With the patch provided by Gregory the default length
>> will be reduced to 4 keys:
>>
>> 'C-x x g y'
>>
>> or to 3 keys when there are no unsaved changes.
>
> First, you can have those 4 keys if you customize use-short-answers;
> no changes in Emacs are necessary.
>
> 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? Perhaps such use cases justify a separate
> command and key binding, like "C-x RET r" does for one such use case.
I discovered this problem while editing source code in one
Emacs instance, and updating the source file in `emacs -Q`.
To get an updated version of the file in `emacs -Q` required
typing 4 more keys after every revert.
>> But when the user decided to revert the buffer explicitly,
>> why require to type more keys?
>
> In general, when there are unsaved changes? To let the user think one
> last time before doing something potentially very destructive.
The question was why require typing more keys
when there are no unsaved changes.
- bug#49869: Revert buffer? Yes/No/Maybe, (continued)
- 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, 2021/08/05
- 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