diff options
| author | Chong Yidong | 2012-09-23 16:24:44 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-23 16:24:44 +0800 |
| commit | 3296976de2e136851978163be384d34bb683f543 (patch) | |
| tree | ef86900bbf71a60a56c575bb450e0dd32ea8b854 /src | |
| parent | 51c4474efc354c0e1ecc06c3014e06a3eca9682a (diff) | |
| download | emacs-3296976de2e136851978163be384d34bb683f543.tar.gz emacs-3296976de2e136851978163be384d34bb683f543.zip | |
* keyboard.c (timer_check): Avoid quitting during Fcopy_sequence.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 676f4127ba5..b60027880fe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-23 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * keyboard.c (timer_check): Avoid quitting during Fcopy_sequence. | ||
| 4 | |||
| 1 | 2012-09-22 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2012-09-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | * .gdbinit: Just stop at fatal_error_backtrace. | 7 | * .gdbinit: Just stop at fatal_error_backtrace. |
diff --git a/src/keyboard.c b/src/keyboard.c index 8b1113a026a..c5a741abc10 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -4496,6 +4496,9 @@ timer_check (void) | |||
| 4496 | Lisp_Object timers, idle_timers; | 4496 | Lisp_Object timers, idle_timers; |
| 4497 | struct gcpro gcpro1, gcpro2; | 4497 | struct gcpro gcpro1, gcpro2; |
| 4498 | 4498 | ||
| 4499 | Lisp_Object tem = Vinhibit_quit; | ||
| 4500 | Vinhibit_quit = Qt; | ||
| 4501 | |||
| 4499 | /* We use copies of the timers' lists to allow a timer to add itself | 4502 | /* We use copies of the timers' lists to allow a timer to add itself |
| 4500 | again, without locking up Emacs if the newly added timer is | 4503 | again, without locking up Emacs if the newly added timer is |
| 4501 | already ripe when added. */ | 4504 | already ripe when added. */ |
| @@ -4508,6 +4511,8 @@ timer_check (void) | |||
| 4508 | else | 4511 | else |
| 4509 | idle_timers = Qnil; | 4512 | idle_timers = Qnil; |
| 4510 | 4513 | ||
| 4514 | Vinhibit_quit = tem; | ||
| 4515 | |||
| 4511 | GCPRO2 (timers, idle_timers); | 4516 | GCPRO2 (timers, idle_timers); |
| 4512 | 4517 | ||
| 4513 | do | 4518 | do |