comparison src/dispnew.c @ 17961:86ae1679df19

(sit_for): New arg initial_display. (Fsit_for): Pass new arg.
author Richard M. Stallman <rms@gnu.org>
date Tue, 27 May 1997 01:54:42 +0000
parents e6f543c1cea5
children 934a44a3b34f
comparison
equal deleted inserted replaced
17960:5c31b98be973 17961:86ae1679df19
2379 2379
2380 It's also much like Fsit_for, except that it can be used for 2380 It's also much like Fsit_for, except that it can be used for
2381 waiting for input as well. */ 2381 waiting for input as well. */
2382 2382
2383 Lisp_Object 2383 Lisp_Object
2384 sit_for (sec, usec, reading, display) 2384 sit_for (sec, usec, reading, display, initial_display)
2385 int sec, usec, reading, display; 2385 int sec, usec, reading, display, initial_display;
2386 { 2386 {
2387 Lisp_Object read_kbd; 2387 Lisp_Object read_kbd;
2388 2388
2389 swallow_events (display); 2389 swallow_events (display);
2390 2390
2391 if (detect_input_pending_run_timers (display)) 2391 if (detect_input_pending_run_timers (display))
2392 return Qnil; 2392 return Qnil;
2393 2393
2394 if (display) 2394 if (initial_display)
2395 redisplay_preserve_echo_area (); 2395 redisplay_preserve_echo_area ();
2396 2396
2397 if (sec == 0 && usec == 0) 2397 if (sec == 0 && usec == 0)
2398 return Qt; 2398 return Qt;
2399 2399
2443 #ifndef EMACS_HAS_USECS 2443 #ifndef EMACS_HAS_USECS
2444 if (usec != 0 && sec == 0) 2444 if (usec != 0 && sec == 0)
2445 error ("millisecond `sit-for' not supported on %s", SYSTEM_TYPE); 2445 error ("millisecond `sit-for' not supported on %s", SYSTEM_TYPE);
2446 #endif 2446 #endif
2447 2447
2448 return sit_for (sec, usec, 0, NILP (nodisp)); 2448 return sit_for (sec, usec, 0, NILP (nodisp), NILP (nodisp));
2449 } 2449 }
2450 2450
2451 char *terminal_type; 2451 char *terminal_type;
2452 2452
2453 /* Initialization done when Emacs fork is started, before doing stty. */ 2453 /* Initialization done when Emacs fork is started, before doing stty. */