changeset 34794:12ca043196d7

(Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 21 Dec 2000 16:56:13 +0000
parents ddeab24202fc
children 44a7acc015ca
files src/undo.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)