GNU bug report logs -
#74637
[PATCH] Make view-read-only behave like view-file
Previous Next
Reported by: Björn Bidar <bjorn.bidar <at> thaodan.de>
Date: Sun, 1 Dec 2024 20:41:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Date: Sun, 01 Dec 2024 22:40:16 +0200
>> From: Björn Bidar via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> Make view-mode behave like when called in view-file when entered because
>> `view-read-only' is true on a file which is not writable.
>> The change makes the view-read-only behave better on files which are
>> not writable.
>> Now it makes Emacs behave more like less on these files.
>
> That's an incompatible behavior change. Is that justified? How can
> we be sure that everyone agrees with your interpretation of this mode?
All other view-file like modes behave like this, you view the file and
leave the file with q.
But even going with that point: You open a file file which isn't
writable. Once you hit q the window is quit and the buffer is buried.
What do you do now next time you visit that file?
The buffer was buried, view-mode isn't active anymore, you would have
to activate view-mode again to go where you left off.
If you would want to edit the file the you visited this way you would
have not pressed q but e to exit view mode and the proceeded to exit
read-only-mode and edit the file.
This bug report was last modified 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.