Mercurial > emacs
diff src/undo.c @ 34168:aaa588f14d8f
(Fprimitive_undo): Bind inhibit-read-only to t if
current buffer is read-only, not if it isn't.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Mon, 04 Dec 2000 13:30:53 +0000 |
| parents | 8d46095169e8 |
| children | 0fec18127c71 |
line wrap: on
line diff
--- a/src/undo.c Mon Dec 04 13:30:09 2000 +0000 +++ b/src/undo.c Mon Dec 04 13:30:53 2000 +0000 @@ -412,7 +412,7 @@ 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)
