comparison lisp/code-process.el @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 576fb035e263
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
123 (if (functionp ret) 123 (if (functionp ret)
124 (setq ret (funcall ret 'call-process-region program))) 124 (setq ret (funcall ret 'call-process-region program)))
125 (cond ((consp ret) 125 (cond ((consp ret)
126 (setq cs-r (car ret) 126 (setq cs-r (car ret)
127 cs-w (cdr ret))) 127 cs-w (cdr ret)))
128 ((null ret)
129 (setq cs-r buffer-file-coding-system
130 cs-w buffer-file-coding-system))
128 ((find-coding-system ret) 131 ((find-coding-system ret)
129 (setq cs-r ret 132 (setq cs-r ret
130 cs-w ret)))) 133 cs-w ret))))
131 (let ((coding-system-for-read 134 (let ((coding-system-for-read
132 (or coding-system-for-read cs-r)) 135 (or coding-system-for-read cs-r))
206 specifying a port number to connect to. 209 specifying a port number to connect to.
207 Fifth argument PROTOCOL is a network protocol. Currently 'tcp 210 Fifth argument PROTOCOL is a network protocol. Currently 'tcp
208 (Transmission Control Protocol) and 'udp (User Datagram Protocol) are 211 (Transmission Control Protocol) and 'udp (User Datagram Protocol) are
209 supported. When omitted, 'tcp is assumed. 212 supported. When omitted, 'tcp is assumed.
210 213
211 Ouput via `process-send-string' and input via buffer or filter (see 214 Output via `process-send-string' and input via buffer or filter (see
212 `set-process-filter') are stream-oriented. That means UDP datagrams are 215 `set-process-filter') are stream-oriented. That means UDP datagrams are
213 not guaranteed to be sent and received in discrete packets. (But small 216 not guaranteed to be sent and received in discrete packets. (But small
214 datagrams around 500 bytes that are not truncated by `process-send-string' 217 datagrams around 500 bytes that are not truncated by `process-send-string'
215 are usually fine.) Note further that UDP protocol does not guard against 218 are usually fine.) Note further that UDP protocol does not guard against
216 lost packets." 219 lost packets."