comparison src/macterm.c @ 56477:59a86f6ee1fb

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
author Steven Tamm <steventamm@mac.com>
date Mon, 19 Jul 2004 04:42:43 +0000
parents 550df8e67006
children e8bafb4b47db e657dca8261e b9eee0a7bef5
comparison
equal deleted inserted replaced
56476:094de440fa2e 56477:59a86f6ee1fb
5319 ShowWindow (FRAME_MAC_WINDOW (f)); 5319 ShowWindow (FRAME_MAC_WINDOW (f));
5320 } 5320 }
5321 5321
5322 XFlush (FRAME_MAC_DISPLAY (f)); 5322 XFlush (FRAME_MAC_DISPLAY (f));
5323 5323
5324 #if 0 /* MAC_TODO */
5325 /* Synchronize to ensure Emacs knows the frame is visible 5324 /* Synchronize to ensure Emacs knows the frame is visible
5326 before we do anything else. We do this loop with input not blocked 5325 before we do anything else. We do this loop with input not blocked
5327 so that incoming events are handled. */ 5326 so that incoming events are handled. */
5328 { 5327 {
5329 Lisp_Object frame; 5328 Lisp_Object frame;
5363 5362
5364 /* See if a MapNotify event has been processed. */ 5363 /* See if a MapNotify event has been processed. */
5365 FRAME_SAMPLE_VISIBILITY (f); 5364 FRAME_SAMPLE_VISIBILITY (f);
5366 } 5365 }
5367 } 5366 }
5368 #else
5369 UNBLOCK_INPUT;
5370 #endif /* MAC_TODO */
5371 } 5367 }
5372 5368
5373 /* Change from mapped state to withdrawn state. */ 5369 /* Change from mapped state to withdrawn state. */
5374 5370
5375 /* Make the frame visible (mapped and not iconified). */ 5371 /* Make the frame visible (mapped and not iconified). */