Commit 4c587cd3 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Fprimitive_undo): Bind inhibit-read-only to t if

current buffer is read-only, not if it isn't.
parent ed8e506f
......@@ -412,7 +412,7 @@ Return what remains of the list.")
GCPRO2 (next, list);
/* Don't let read-only properties interfere with undo. */
if (NILP (current_buffer->read_only))
if (!NILP (current_buffer->read_only))
specbind (Qinhibit_read_only, Qt);
while (arg > 0)
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