aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-31 06:08:07 +0000
committerRichard M. Stallman1997-07-31 06:08:07 +0000
commit77e1b3d494eed714f22f8b18c9d87bdd2fb3f890 (patch)
treed3f219b50ccd7b10a859e9f7506d7a74360b0f7b /src/process.c
parent19a8d9e0f8663165ecd9d5b673b890b0780605dc (diff)
downloademacs-77e1b3d494eed714f22f8b18c9d87bdd2fb3f890.tar.gz
emacs-77e1b3d494eed714f22f8b18c9d87bdd2fb3f890.zip
(read_process_output): Don't call setup_coding_system
for proc_decode_coding_system[channel]. It is already done in detect_coding called via decode_coding. (wait_reading_process_input): Call detect_input_pending whenever read_kbd is 0, not just when wait_for_cell.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/process.c b/src/process.c
index 4f691dd86b2..af4fb8f9f22 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2472,7 +2472,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
2472 /* If there is any, return immediately 2472 /* If there is any, return immediately
2473 to give it higher priority than subprocesses */ 2473 to give it higher priority than subprocesses */
2474 2474
2475 if ((XINT (read_kbd) != 0) 2475 if (XINT (read_kbd) != 0
2476 && detect_input_pending_run_timers (do_display)) 2476 && detect_input_pending_run_timers (do_display))
2477 { 2477 {
2478 swallow_events (do_display); 2478 swallow_events (do_display);
@@ -2485,13 +2485,14 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
2485 && requeued_events_pending_p ()) 2485 && requeued_events_pending_p ())
2486 break; 2486 break;
2487 2487
2488 /* If wait_for_cell. check for keyboard input 2488 /* If we are not checking for keyboard input now,
2489 but don't run any timers. 2489 do process events (but don't run any timers).
2490 The reason for this is so that X events will be processed. 2490 This is so that X events will be processed.
2491 Otherwise they may have to wait until polling takes place. 2491 Otherwise they may have to wait until polling takes place.
2492 That would causes delays in pasting selections, for example. */ 2492 That would causes delays in pasting selections, for example.
2493 if (wait_for_cell 2493
2494 && detect_input_pending ()) 2494 (We used to do this only if wait_for_cell.) */
2495 if (XINT (read_kbd) == 0 && detect_input_pending ())
2495 { 2496 {
2496 swallow_events (do_display); 2497 swallow_events (do_display);
2497#if 0 /* Exiting when read_kbd doesn't request that seems wrong, though. */ 2498#if 0 /* Exiting when read_kbd doesn't request that seems wrong, though. */
@@ -2763,8 +2764,11 @@ read_process_output (proc, channel)
2763 if (!EQ (p->decode_coding_system, coding->symbol)) 2764 if (!EQ (p->decode_coding_system, coding->symbol))
2764 { 2765 {
2765 p->decode_coding_system = coding->symbol; 2766 p->decode_coding_system = coding->symbol;
2766 setup_coding_system (coding->symbol, 2767
2767 proc_decode_coding_system[channel]); 2768 /* Don't call setup_coding_system for
2769 proc_decode_coding_system[channel] here. It is done in
2770 detect_coding called via decode_coding above. */
2771
2768 /* If coding-system for encoding is not yet decided, we set it 2772 /* If coding-system for encoding is not yet decided, we set it
2769 as the same as coding-system for decoding. */ 2773 as the same as coding-system for decoding. */
2770 if (NILP (p->encode_coding_system)) 2774 if (NILP (p->encode_coding_system))