comparison src/dispnew.c @ 71573:469b92d9146e

(sit_for): Fix preempt condition.
author Kim F. Storm <storm@cua.dk>
date Mon, 03 Jul 2006 15:00:28 +0000
parents 1b442e9d8373
children 1055c0769159 138ce2701550
comparison
equal deleted inserted replaced
71572:058824421a84 71573:469b92d9146e
6502 6502
6503 Lisp_Object 6503 Lisp_Object
6504 sit_for (sec, usec, reading, display, initial_display) 6504 sit_for (sec, usec, reading, display, initial_display)
6505 int sec, usec, reading, display, initial_display; 6505 int sec, usec, reading, display, initial_display;
6506 { 6506 {
6507 int preempt = (sec >= 0) || (sec == 0 && usec >= 0); 6507 int preempt = (sec > 0) || (sec == 0 && usec >= 0);
6508 6508
6509 swallow_events (display); 6509 swallow_events (display);
6510 6510
6511 if ((detect_input_pending_run_timers (display) && preempt) 6511 if ((detect_input_pending_run_timers (display) && preempt)
6512 || !NILP (Vexecuting_kbd_macro)) 6512 || !NILP (Vexecuting_kbd_macro))