1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00: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)