diff options
| author | Glenn Morris | 2019-07-30 21:42:34 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-07-30 21:42:34 -0700 |
| commit | 1ac0cfa2642ac026e09a7555f000e895b49289d5 (patch) | |
| tree | 952416b5746614ea4e961dca70a00162421de36f /src/process.c | |
| parent | 77fb84e6db96cbaa70e230f4881e4ede6e028f15 (diff) | |
| parent | 8fbe46252f5f241d274b59c6b1aaecd3ee58cc6a (diff) | |
| download | emacs-1ac0cfa2642ac026e09a7555f000e895b49289d5.tar.gz emacs-1ac0cfa2642ac026e09a7555f000e895b49289d5.zip | |
Merge from origin/emacs-26
8fbe462 (origin/emacs-26) ; * doc/lispref/positions.texi (List Motion...
1d9efc0 Add index for "\( in strings" (Bug#25195)
304e96f Fix doc-string of 'fit-window-to-buffer' (Bug#36848)
d4c4987 Update view-mode docstring
d6ca1fc ; * lisp/term.el: Add missing / to esc seq commentary.
b3e2073 Fix subproc listening when setting filter to non-t (Bug#36591)
f671950 * etc/NEWS.25: Belatedly announce rcirc-reconnect-delay.
7f42277 Mention term.el's \032 dir tracking in commentary (Bug#19524)
16a529e Remove upload functionality of package-x from the elisp manual
78e6c2a * etc/AUTHORS: Update.
086a56e Clarify Gravatar docs
0592467 * doc/lispref/display.texi (Defining Faces): Say a face can't...
# Conflicts:
# doc/emacs/programs.texi
# etc/AUTHORS
# lisp/term.el
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index abadabe77ea..066edbc83d6 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1279,10 +1279,19 @@ The string argument is normally a multibyte string, except: | |||
| 1279 | if (NILP (filter)) | 1279 | if (NILP (filter)) |
| 1280 | filter = Qinternal_default_process_filter; | 1280 | filter = Qinternal_default_process_filter; |
| 1281 | 1281 | ||
| 1282 | pset_filter (p, filter); | ||
| 1283 | |||
| 1284 | if (p->infd >= 0) | 1282 | if (p->infd >= 0) |
| 1285 | set_process_filter_masks (p); | 1283 | { |
| 1284 | /* If filter WILL be t, stop reading output. */ | ||
| 1285 | if (EQ (filter, Qt) && !EQ (p->status, Qlisten)) | ||
| 1286 | delete_read_fd (p->infd); | ||
| 1287 | else if (/* If filter WAS t, then resume reading output. */ | ||
| 1288 | EQ (p->filter, Qt) | ||
| 1289 | /* Network or serial process not stopped: */ | ||
| 1290 | && !EQ (p->command, Qt)) | ||
| 1291 | add_process_read_fd (p->infd); | ||
| 1292 | } | ||
| 1293 | |||
| 1294 | pset_filter (p, filter); | ||
| 1286 | 1295 | ||
| 1287 | if (NETCONN1_P (p) || SERIALCONN1_P (p) || PIPECONN1_P (p)) | 1296 | if (NETCONN1_P (p) || SERIALCONN1_P (p) || PIPECONN1_P (p)) |
| 1288 | pset_childp (p, Fplist_put (p->childp, QCfilter, filter)); | 1297 | pset_childp (p, Fplist_put (p->childp, QCfilter, filter)); |