aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-09 00:31:24 +0000
committerRichard M. Stallman1995-10-09 00:31:24 +0000
commit927e08bef8a8053157822b36a34a8d6c401631ee (patch)
treec8891fbe68d586ddb18e2647cf0fb9c29aedcddb /src
parent641889d6e9884fda13b4c32e27a5ecf785f2f80f (diff)
downloademacs-927e08bef8a8053157822b36a34a8d6c401631ee.tar.gz
emacs-927e08bef8a8053157822b36a34a8d6c401631ee.zip
(exec_sentinel, read_process_output):
Call record_asynch_buffer_change only if caller is reading kbd input.
Diffstat (limited to 'src')
-rw-r--r--src/process.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 438f6e21e4c..9862bb30e85 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2393,7 +2393,11 @@ read_process_output (proc, channel)
2393 if (! EQ (Fcurrent_buffer (), obuffer) 2393 if (! EQ (Fcurrent_buffer (), obuffer)
2394 || ! EQ (current_buffer->keymap, okeymap)) 2394 || ! EQ (current_buffer->keymap, okeymap))
2395#endif 2395#endif
2396 record_asynch_buffer_change (); 2396 /* But do it only if the caller is actually going to read events.
2397 Otherwise there's no need to make him wake up, and it could
2398 cause trouble (for example it would make Fsit_for return). */
2399 if (waiting_for_user_input_p == -1)
2400 record_asynch_buffer_change ();
2397 2401
2398#ifdef VMS 2402#ifdef VMS
2399 start_vms_process_read (vs); 2403 start_vms_process_read (vs);
@@ -3391,7 +3395,11 @@ exec_sentinel (proc, reason)
3391 if (! EQ (Fcurrent_buffer (), obuffer) 3395 if (! EQ (Fcurrent_buffer (), obuffer)
3392 || ! EQ (current_buffer->keymap, okeymap)) 3396 || ! EQ (current_buffer->keymap, okeymap))
3393#endif 3397#endif
3394 record_asynch_buffer_change (); 3398 /* But do it only if the caller is actually going to read events.
3399 Otherwise there's no need to make him wake up, and it could
3400 cause trouble (for example it would make Fsit_for return). */
3401 if (waiting_for_user_input_p == -1)
3402 record_asynch_buffer_change ();
3395 3403
3396 unbind_to (count, Qnil); 3404 unbind_to (count, Qnil);
3397} 3405}