diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/undo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index 31d7c39db14..40cebbac6ed 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -393,8 +393,9 @@ Return what remains of the 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; |
| @@ -415,6 +416,9 @@ Return what remains of the list.") | |||
| 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); |
| 417 | 418 | ||
| 419 | /* Don't let `intangible' properties interfere with undo. */ | ||
| 420 | specbind (Qinhibit_point_motion_hooks, Qt); | ||
| 421 | |||
| 418 | while (arg > 0) | 422 | while (arg > 0) |
| 419 | { | 423 | { |
| 420 | while (1) | 424 | while (1) |