comparison src/undo.c @ 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 0fec18127c71
children 0b32632273e8
comparison
equal deleted inserted replaced
34793:ddeab24202fc 34794:12ca043196d7
391 (n, list) 391 (n, list)
392 Lisp_Object n, list; 392 Lisp_Object n, list;
393 { 393 {
394 struct gcpro gcpro1, gcpro2; 394 struct gcpro gcpro1, gcpro2;
395 Lisp_Object next; 395 Lisp_Object next;
396 int count = specpdl_ptr - specpdl; 396 int count = BINDING_STACK_SIZE ();
397 register int arg; 397 register int arg;
398
398 #if 0 /* This is a good feature, but would make undo-start 399 #if 0 /* This is a good feature, but would make undo-start
399 unable to do what is expected. */ 400 unable to do what is expected. */
400 Lisp_Object tem; 401 Lisp_Object tem;
401 402
402 /* If the head of the list is a boundary, it is the boundary 403 /* If the head of the list is a boundary, it is the boundary
412 GCPRO2 (next, list); 413 GCPRO2 (next, list);
413 414
414 /* Don't let read-only properties interfere with undo. */ 415 /* Don't let read-only properties interfere with undo. */
415 if (!NILP (current_buffer->read_only)) 416 if (!NILP (current_buffer->read_only))
416 specbind (Qinhibit_read_only, Qt); 417 specbind (Qinhibit_read_only, Qt);
418
419 /* Don't let `intangible' properties interfere with undo. */
420 specbind (Qinhibit_point_motion_hooks, Qt);
417 421
418 while (arg > 0) 422 while (arg > 0)
419 { 423 {
420 while (1) 424 while (1)
421 { 425 {