GNU bug report logs - #41002
Undo breaks inhibit-read-only text property

Previous Next

Package: emacs;

Reported by: Serhii Mozghovyi <egnartsms <at> gmail.com>

Date: Fri, 1 May 2020 15:42:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Serhii Mozghovyi <egnartsms <at> gmail.com>
To: 41002 <at> debbugs.gnu.org
Subject: bug#41002: Undo breaks inhibit-read-only text property
Date: Fri, 1 May 2020 13:38:24 +0300
The inhibit-read-only text property in a read-only buffer does not work
with Undo:

C-x b <unique buffer name>, then insert some text, such as:

---

First paragraph.

Second paragraph.

---

Then M-: (put-text-property (point-min) (point-max) 'inhibit-read-only
t), and C-x C-q to make the buffer read-only. Now select the "Se" and
kill it with C-w: it succeeds. Then hit C-/ to undo, select "Sec" and
try to kill again. Now it fails. For any other region that does not
intersect with "Se", killing works.





This bug report was last modified 5 years and 33 days ago.

Previous Next


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