comparison src/process.c @ 49281:f9e4999d3025

(set-process-filter): Document unibyte/multibyte-ness of string argument.
author Kim F. Storm <storm@cua.dk>
date Thu, 16 Jan 2003 12:59:18 +0000
parents a3af03912e6f
children 23a1cea22d13
comparison
equal deleted inserted replaced
49280:39c17dda288e 49281:f9e4999d3025
842 842
843 DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter, 843 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 {
854 struct Lisp_Process *p; 862 struct Lisp_Process *p;
855 863