diff options
| author | Kim F. Storm | 2004-08-19 13:59:28 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-08-19 13:59:28 +0000 |
| commit | bb41f093dde33efca8a7d5baf6eb1c364ea684c4 (patch) | |
| tree | 0db113834c43767ef2f213cbf6e5081b131aa054 /src | |
| parent | b89a415ab18b6ed14f70518d8bd336d1f3364c9c (diff) | |
| download | emacs-bb41f093dde33efca8a7d5baf6eb1c364ea684c4.tar.gz emacs-bb41f093dde33efca8a7d5baf6eb1c364ea684c4.zip | |
Adapt to new wait_reading_process_input args.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 13 | ||||
| -rw-r--r-- | src/keyboard.c | 5 | ||||
| -rw-r--r-- | src/lisp.h | 5 | ||||
| -rw-r--r-- | src/xselect.c | 6 |
4 files changed, 12 insertions, 17 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 8a713857273..0d2ce118e0f 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6331,12 +6331,7 @@ Emacs was built without floating point support. | |||
| 6331 | if (sec < 0 || (sec == 0 && usec == 0)) | 6331 | if (sec < 0 || (sec == 0 && usec == 0)) |
| 6332 | return Qnil; | 6332 | return Qnil; |
| 6333 | 6333 | ||
| 6334 | { | 6334 | wait_reading_process_input (sec, usec, 0, 0, Qnil, NULL, 0); |
| 6335 | Lisp_Object zero; | ||
| 6336 | |||
| 6337 | XSETFASTINT (zero, 0); | ||
| 6338 | wait_reading_process_input (sec, usec, zero, 0); | ||
| 6339 | } | ||
| 6340 | 6335 | ||
| 6341 | /* We should always have wait_reading_process_input; we have a dummy | 6336 | /* We should always have wait_reading_process_input; we have a dummy |
| 6342 | implementation for systems which don't support subprocesses. */ | 6337 | implementation for systems which don't support subprocesses. */ |
| @@ -6386,8 +6381,6 @@ Lisp_Object | |||
| 6386 | sit_for (sec, usec, reading, display, initial_display) | 6381 | sit_for (sec, usec, reading, display, initial_display) |
| 6387 | int sec, usec, reading, display, initial_display; | 6382 | int sec, usec, reading, display, initial_display; |
| 6388 | { | 6383 | { |
| 6389 | Lisp_Object read_kbd; | ||
| 6390 | |||
| 6391 | swallow_events (display); | 6384 | swallow_events (display); |
| 6392 | 6385 | ||
| 6393 | if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_macro)) | 6386 | if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_macro)) |
| @@ -6403,8 +6396,8 @@ sit_for (sec, usec, reading, display, initial_display) | |||
| 6403 | gobble_input (0); | 6396 | gobble_input (0); |
| 6404 | #endif | 6397 | #endif |
| 6405 | 6398 | ||
| 6406 | XSETINT (read_kbd, reading ? -1 : 1); | 6399 | wait_reading_process_input (sec, usec, reading ? -1 : 1, display, |
| 6407 | wait_reading_process_input (sec, usec, read_kbd, display); | 6400 | Qnil, NULL, 0); |
| 6408 | 6401 | ||
| 6409 | return detect_input_pending () ? Qnil : Qt; | 6402 | return detect_input_pending () ? Qnil : Qt; |
| 6410 | } | 6403 | } |
diff --git a/src/keyboard.c b/src/keyboard.c index 268d782e478..77b3886d809 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3899,10 +3899,7 @@ kbd_buffer_get_event (kbp, used_mouse_menu) | |||
| 3899 | break; | 3899 | break; |
| 3900 | #endif | 3900 | #endif |
| 3901 | { | 3901 | { |
| 3902 | Lisp_Object minus_one; | 3902 | wait_reading_process_input (0, 0, -1, 1, Qnil, NULL, 0); |
| 3903 | |||
| 3904 | XSETINT (minus_one, -1); | ||
| 3905 | wait_reading_process_input (0, 0, minus_one, 1); | ||
| 3906 | 3903 | ||
| 3907 | if (!interrupt_input && kbd_fetch_ptr == kbd_store_ptr) | 3904 | if (!interrupt_input && kbd_fetch_ptr == kbd_store_ptr) |
| 3908 | /* Pass 1 for EXPECT since we just waited to have input. */ | 3905 | /* Pass 1 for EXPECT since we just waited to have input. */ |
diff --git a/src/lisp.h b/src/lisp.h index a0345653924..e4fd7ef2c16 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2964,7 +2964,10 @@ EXFUN (Fprocess_send_eof, 1); | |||
| 2964 | EXFUN (Fwaiting_for_user_input_p, 0); | 2964 | EXFUN (Fwaiting_for_user_input_p, 0); |
| 2965 | extern Lisp_Object Qprocessp; | 2965 | extern Lisp_Object Qprocessp; |
| 2966 | extern void kill_buffer_processes P_ ((Lisp_Object)); | 2966 | extern void kill_buffer_processes P_ ((Lisp_Object)); |
| 2967 | extern int wait_reading_process_input P_ ((int, int, Lisp_Object, int)); | 2967 | extern int wait_reading_process_input P_ ((int, int, int, int, |
| 2968 | Lisp_Object, | ||
| 2969 | struct Lisp_Process *, | ||
| 2970 | int)); | ||
| 2968 | extern void deactivate_process P_ ((Lisp_Object)); | 2971 | extern void deactivate_process P_ ((Lisp_Object)); |
| 2969 | extern void add_keyboard_wait_descriptor P_ ((int)); | 2972 | extern void add_keyboard_wait_descriptor P_ ((int)); |
| 2970 | extern void delete_keyboard_wait_descriptor P_ ((int)); | 2973 | extern void delete_keyboard_wait_descriptor P_ ((int)); |
diff --git a/src/xselect.c b/src/xselect.c index 7be238651a0..bf7b21cf323 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1109,7 +1109,8 @@ wait_for_property_change (location) | |||
| 1109 | secs = x_selection_timeout / 1000; | 1109 | secs = x_selection_timeout / 1000; |
| 1110 | usecs = (x_selection_timeout % 1000) * 1000; | 1110 | usecs = (x_selection_timeout % 1000) * 1000; |
| 1111 | TRACE2 (" Waiting %d secs, %d usecs", secs, usecs); | 1111 | TRACE2 (" Waiting %d secs, %d usecs", secs, usecs); |
| 1112 | wait_reading_process_input (secs, usecs, property_change_reply, 0); | 1112 | wait_reading_process_input (secs, usecs, 0, 0, |
| 1113 | property_change_reply, NULL, 0); | ||
| 1113 | 1114 | ||
| 1114 | if (NILP (XCAR (property_change_reply))) | 1115 | if (NILP (XCAR (property_change_reply))) |
| 1115 | { | 1116 | { |
| @@ -1288,7 +1289,8 @@ x_get_foreign_selection (selection_symbol, target_type, time_stamp) | |||
| 1288 | secs = x_selection_timeout / 1000; | 1289 | secs = x_selection_timeout / 1000; |
| 1289 | usecs = (x_selection_timeout % 1000) * 1000; | 1290 | usecs = (x_selection_timeout % 1000) * 1000; |
| 1290 | TRACE1 (" Start waiting %d secs for SelectionNotify", secs); | 1291 | TRACE1 (" Start waiting %d secs for SelectionNotify", secs); |
| 1291 | wait_reading_process_input (secs, usecs, reading_selection_reply, 0); | 1292 | wait_reading_process_input (secs, usecs, 0, 0, |
| 1293 | reading_selection_reply, NULL, 0); | ||
| 1292 | TRACE1 (" Got event = %d", !NILP (XCAR (reading_selection_reply))); | 1294 | TRACE1 (" Got event = %d", !NILP (XCAR (reading_selection_reply))); |
| 1293 | 1295 | ||
| 1294 | BLOCK_INPUT; | 1296 | BLOCK_INPUT; |