1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00

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

current buffer is read-only, not if it isn't.
This commit is contained in:
Gerd Moellmann 2000-12-04 13:30:53 +00:00
parent ed8e506f24
commit 4c587cd3af

View file

@ -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)