changeset 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 ce6d3ca84e6d
children 0fec18127c71
files src/undo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)