From 38d56be353507d0b9aebbe63d5fb7f9a17b4b593 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 30 Apr 2001 14:57:35 +0000 Subject: [PATCH] (Fprimitive_undo): In a writable buffer, enable undoing read-only text that is so because of text properties. --- src/undo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/undo.c b/src/undo.c index d2a5590a193..83c2327a8db 100644 --- a/src/undo.c +++ b/src/undo.c @@ -412,8 +412,9 @@ Return what remains of the list.") next = Qnil; GCPRO2 (next, list); - /* Don't let read-only properties interfere with undo. */ - if (!NILP (current_buffer->read_only)) + /* In a writable buffer, enable undoing read-only text that is so + because of text properties. */ + if (NILP (current_buffer->read_only)) specbind (Qinhibit_read_only, Qt); /* Don't let `intangible' properties interfere with undo. */ -- 2.39.5