bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50431: revert-buffer doesn't preserve read-onlyness


From: Juri Linkov
Subject: bug#50431: revert-buffer doesn't preserve read-onlyness
Date: Thu, 25 Aug 2022 22:35:31 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> >> but reverting loses view-mode:
>> >>
>> >>   C-h C-t  -- note "View" on the mode-line;
>> >>   C-x x g  -- "View" is lost.
>> >
>> > Hm, yes.  Reverting a buffer disables all the minor modes?
>>
>> Maybe minor modes should be restored after reverting?
>
> 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.

In the above example, `C-h C-t' `C-x x g' doesn't preserve the same state
as visiting the file anew with `C-h C-t'.

> 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.

It was a regression when reverting stopped to preserve the read-only status
that worked in older versions.  OTOH, in older versions reverting didn't
preserve the minor modes.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]