diff options
| author | Steven Tamm | 2004-07-19 04:42:43 +0000 |
|---|---|---|
| committer | Steven Tamm | 2004-07-19 04:42:43 +0000 |
| commit | e082ac9deb976fa9ea3e09d639191bee9e9d5315 (patch) | |
| tree | 82a1728cf854c76c67afea7fcd1cc5fc81a44688 /src/atimer.c | |
| parent | 1204e81c9e8cc713c8d19116873d9d96a9471467 (diff) | |
| download | emacs-e082ac9deb976fa9ea3e09d639191bee9e9d5315.tar.gz emacs-e082ac9deb976fa9ea3e09d639191bee9e9d5315.zip | |
Fixes for Ctrl-G support on carbon, replacing old timeout based polling
with alarm based polling.
mac.c (sys_select): Redo sys_select to use alarm-based
polling instead of 1 sec timeouts (like solaris).
macterm.c (x_make_frame_visible): Comment in polling on
frame creation.
keyboard.c: Undef SIGIO on Carbon
atimer.c (alarm_signal_handler): Call alarm handlers after
scheduling.
eval.c (Feval): Remove quit_char test
process.c (wait_reading_process_input): Remove clearing
stdin for select call on process input
Diffstat (limited to 'src/atimer.c')
| -rw-r--r-- | src/atimer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/atimer.c b/src/atimer.c index 7e78bdad9c0..9ec0238ff28 100644 --- a/src/atimer.c +++ b/src/atimer.c | |||
| @@ -375,7 +375,9 @@ alarm_signal_handler (signo) | |||
| 375 | 375 | ||
| 376 | t = atimers; | 376 | t = atimers; |
| 377 | atimers = atimers->next; | 377 | atimers = atimers->next; |
| 378 | #ifndef MAC_OSX | ||
| 378 | t->fn (t); | 379 | t->fn (t); |
| 380 | #endif | ||
| 379 | 381 | ||
| 380 | if (t->type == ATIMER_CONTINUOUS) | 382 | if (t->type == ATIMER_CONTINUOUS) |
| 381 | { | 383 | { |
| @@ -387,6 +389,10 @@ alarm_signal_handler (signo) | |||
| 387 | t->next = free_atimers; | 389 | t->next = free_atimers; |
| 388 | free_atimers = t; | 390 | free_atimers = t; |
| 389 | } | 391 | } |
| 392 | #ifdef MAC_OSX | ||
| 393 | /* Fix for Ctrl-G. Perhaps this should apply to all platforms. */ | ||
| 394 | t->fn (t); | ||
| 395 | #endif | ||
| 390 | 396 | ||
| 391 | EMACS_GET_TIME (now); | 397 | EMACS_GET_TIME (now); |
| 392 | } | 398 | } |