Commit 38d56be3 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Fprimitive_undo): In a writable buffer, enable undoing

read-only text that is so because of text properties.
parent c95fc5f1
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment