# HG changeset patch # User Gerd Moellmann # Date 977417773 0 # Node ID 12ca043196d705689bee9ef636938dcbc793637c # Parent ddeab24202fcbedae5e58100b3b66620ad34561d (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t. diff -r ddeab24202fc -r 12ca043196d7 src/undo.c --- a/src/undo.c Thu Dec 21 16:39:28 2000 +0000 +++ b/src/undo.c Thu Dec 21 16:56:13 2000 +0000 @@ -393,8 +393,9 @@ { struct gcpro gcpro1, gcpro2; Lisp_Object next; - int count = specpdl_ptr - specpdl; + int count = BINDING_STACK_SIZE (); register int arg; + #if 0 /* This is a good feature, but would make undo-start unable to do what is expected. */ Lisp_Object tem; @@ -415,6 +416,9 @@ if (!NILP (current_buffer->read_only)) specbind (Qinhibit_read_only, Qt); + /* Don't let `intangible' properties interfere with undo. */ + specbind (Qinhibit_point_motion_hooks, Qt); + while (arg > 0) { while (1)