diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index e90382b08b1..1998e845421 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -844,10 +844,18 @@ DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter, | |||
| 844 | 2, 2, 0, | 844 | 2, 2, 0, |
| 845 | doc: /* Give PROCESS the filter function FILTER; nil means no filter. | 845 | doc: /* Give PROCESS the filter function FILTER; nil means no filter. |
| 846 | t means stop accepting output from the process. | 846 | t means stop accepting output from the process. |
| 847 | When a process has a filter, each time it does output | 847 | |
| 848 | the entire string of output is passed to the filter. | 848 | When a process has a filter, its buffer is not used for output. |
| 849 | Instead, each time it does output, the entire string of output is | ||
| 850 | passed to the filter. | ||
| 851 | |||
| 849 | The filter gets two arguments: the process and the string of output. | 852 | The filter gets two arguments: the process and the string of output. |
| 850 | If the process has a filter, its buffer is not used for output. */) | 853 | The string argument is normally a multibyte string, except: |
| 854 | - if the process' input coding system is no-conversion or raw-text, | ||
| 855 | it is a unibyte string (the non-converted input), or else | ||
| 856 | - if `default-enable-multibyte-characters' is nil, it is a unibyte | ||
| 857 | string (the result of converting the decoded input multibyte | ||
| 858 | string to unibyte with `string-make-unibyte'). */) | ||
| 851 | (process, filter) | 859 | (process, filter) |
| 852 | register Lisp_Object process, filter; | 860 | register Lisp_Object process, filter; |
| 853 | { | 861 | { |