]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fprimitive_undo): Bind inhibit-read-only to t if
authorGerd Moellmann <gerd@gnu.org>
Mon, 4 Dec 2000 13:30:53 +0000 (13:30 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 4 Dec 2000 13:30:53 +0000 (13:30 +0000)
current buffer is read-only, not if it isn't.

src/undo.c

index 2eedfe31ab3b78d1369dec6df7e601858423120c..df1b82ff759fc81808429ebadf7b4733eace616c 100644 (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)