GNU bug report logs - #61652
28.2; Read-only mode and View mode

Previous Next

Package: emacs;

Reported by: Bernd Rellermeyer <bernd.rellermeyer <at> t-online.de>

Date: Mon, 20 Feb 2023 14:09:02 UTC

Severity: normal

Tags: notabug, wontfix

Found in version 28.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Bernd Rellermeyer <bernd.rellermeyer <at> t-online.de>
Cc: 61652 <at> debbugs.gnu.org
Subject: bug#61652: 28.2; Read-only mode and View mode
Date: Mon, 20 Feb 2023 16:42:25 +0200
> From: Bernd Rellermeyer <bernd.rellermeyer <at> t-online.de>
> Date: Mon, 20 Feb 2023 09:41:33 +0100
> 
> 
> I have the following scenario:
> 
> 1. View a buffer in View mode.
> 2. Turn off Read-Only mode, e.g. by pressing `C-x C-q`.
> 3. Turn on Read-Only mode and View mode again, eg. by pressing `C-x
> C-q`-
> 4. Exit View mode by `View-exit`, e.g. by pressing `e`.
> 
> Now the buffer is in Read-Only mode. In my opinion it should be
> writable. The reason is the variable `view-old-buffer-read-only`, which
> is set on entering View mode (`view--enable`) to the (old) value of
> `buffer-read-only`. But in my scenario, the value of `buffer-read-only`
> is already the new one, as set in `read-only-mode`.

If the buffer is already read-only when you enter View mode, why
should we reset read-only when exiting View mode?  We are trying to
leave the buffer as we found it, which in this case is read-only.

Or what am I missing?




This bug report was last modified 1 year and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.