[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50431: revert-buffer doesn't preserve read-onlyness
From: |
Lars Ingebrigtsen |
Subject: |
bug#50431: revert-buffer doesn't preserve read-onlyness |
Date: |
Fri, 26 Aug 2022 12:41:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> > Hm, yes. Reverting a buffer disables all the minor modes?
>>
>> Maybe minor modes should be restored after reverting?
I'm not sure how useful that'd be in general. view-mode is slightly
special here because people use that selectively with the intent of "I'm
not really editing this one file", though.
> Only the minor modes that are automatically turned on when visiting
> the file. Reverting should produce the same effect as killing the
> buffer and then visiting the file anew, nothing more, nothing less.
>
> For that reason, I'm not sure the change that preserves the read-only
> status across reverts is correct. At the very least, it should be an
> opt-in feature, IMO.
If a user has made an explicit readedness choice for a buffer, then
preserving that over a revert is probably what they want. (Especially
with auto-reverting.) But if we get complaints, we can add a user
option.
- bug#50431: revert-buffer doesn't preserve read-onlyness, Lars Ingebrigtsen, 2022/08/24
- bug#50431: revert-buffer doesn't preserve read-onlyness, Juri Linkov, 2022/08/24
- bug#50431: revert-buffer doesn't preserve read-onlyness, Lars Ingebrigtsen, 2022/08/25
- bug#50431: revert-buffer doesn't preserve read-onlyness, Juri Linkov, 2022/08/25
- bug#50431: revert-buffer doesn't preserve read-onlyness, Eli Zaretskii, 2022/08/25
- bug#50431: revert-buffer doesn't preserve read-onlyness, Juri Linkov, 2022/08/25
- bug#50431: revert-buffer doesn't preserve read-onlyness, Eli Zaretskii, 2022/08/26
- bug#50431: revert-buffer doesn't preserve read-onlyness, Juri Linkov, 2022/08/26
- bug#50431: revert-buffer doesn't preserve read-onlyness, Drew Adams, 2022/08/26
- bug#50431: revert-buffer doesn't preserve read-onlyness,
Lars Ingebrigtsen <=
- bug#50431: revert-buffer doesn't preserve read-onlyness, Eli Zaretskii, 2022/08/26
- bug#50431: revert-buffer doesn't preserve read-onlyness, Drew Adams, 2022/08/26
- bug#50431: revert-buffer doesn't preserve read-onlyness, Lars Ingebrigtsen, 2022/08/27