From: Serhii Mozghovyi <egnartsms@gmail.com>
To: 41002@debbugs.gnu.org
Subject: bug#41002: Undo breaks inhibit-read-only text property
Date: Fri, 1 May 2020 13:38:24 +0300 [thread overview]
Message-ID: <76e70d06-5dd7-700e-2d05-e3f1ec282a7c@gmail.com> (raw)
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.
next reply other threads:[~2020-05-01 10:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-01 10:38 Serhii Mozghovyi [this message]
2020-05-02 17:33 ` bug#41002: Undo breaks inhibit-read-only text property Filipp Gunbin
2020-05-02 19:09 ` Serhii Mozghovyi
2020-05-03 3:22 ` Filipp Gunbin
2020-05-09 7:37 ` Eli Zaretskii
2020-05-09 13:34 ` Filipp Gunbin
2020-05-09 13:49 ` Eli Zaretskii
2020-05-09 16:55 ` Filipp Gunbin
2020-05-19 12:12 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76e70d06-5dd7-700e-2d05-e3f1ec282a7c@gmail.com \
--to=egnartsms@gmail.com \
--cc=41002@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).