Mercurial > hg > xemacs-beta
comparison lisp/code-process.el @ 771:943eaba38521
[xemacs-hg @ 2002-03-13 08:51:24 by ben]
The big ben-mule-21-5 check-in!
Various files were added and deleted. See CHANGES-ben-mule.
There are still some test suite failures. No crashes, though.
Many of the failures have to do with problems in the test suite itself
rather than in the actual code. I'll be addressing these in the next
day or so -- none of the test suite failures are at all critical.
Meanwhile I'll be trying to address the biggest issues -- i.e. build
or run failures, which will almost certainly happen on various platforms.
All comments should be sent to ben@xemacs.org -- use a Cc: if necessary
when sending to mailing lists. There will be pre- and post- tags,
something like
pre-ben-mule-21-5-merge-in, and
post-ben-mule-21-5-merge-in.
author | ben |
---|---|
date | Wed, 13 Mar 2002 08:54:06 +0000 |
parents | 576fb035e263 |
children | 0490271de7d8 |
comparison
equal
deleted
inserted
replaced
770:336a418893b5 | 771:943eaba38521 |
---|---|
1 ;;; code-process.el --- Process coding functions for XEmacs. | 1 ;;; code-process.el --- Process coding functions for XEmacs. |
2 | 2 |
3 ;; Copyright (C) 1985-1987, 1993, 1994, 1997 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1985-1987, 1993, 1994, 1997 Free Software Foundation, Inc. |
4 ;; Copyright (C) 1995 Ben Wing | 4 ;; Copyright (C) 1995, 2000 Ben Wing |
5 ;; Copyright (C) 1997 MORIOKA Tomohiko | 5 ;; Copyright (C) 1997 MORIOKA Tomohiko |
6 | 6 |
7 ;; Author: Ben Wing | 7 ;; Author: Ben Wing |
8 ;; MORIOKA Tomohiko | 8 ;; MORIOKA Tomohiko |
9 ;; Maintainer: XEmacs Development Team | 9 ;; Maintainer: XEmacs Development Team |
170 cs-w (cdr ret))) | 170 cs-w (cdr ret))) |
171 ((find-coding-system ret) | 171 ((find-coding-system ret) |
172 (setq cs-r ret | 172 (setq cs-r ret |
173 cs-w ret)))) | 173 cs-w ret)))) |
174 (let ((coding-system-for-read | 174 (let ((coding-system-for-read |
175 (or coding-system-for-read cs-r 'undecided)) | 175 (or coding-system-for-read cs-r |
176 (car default-process-coding-system))) | |
176 (coding-system-for-write | 177 (coding-system-for-write |
177 (or coding-system-for-write cs-w))) | 178 (or coding-system-for-write cs-w |
179 (cdr default-process-coding-system)))) | |
178 (apply 'start-process-internal name buffer program program-args) | 180 (apply 'start-process-internal name buffer program program-args) |
179 ))) | 181 ))) |
180 | 182 |
181 (defvar network-coding-system-alist nil | 183 (defvar network-coding-system-alist nil |
182 "Alist to decide a coding system to use for a network I/O operation. | 184 "Alist to decide a coding system to use for a network I/O operation. |
250 (or coding-system-for-read cs-r)) | 252 (or coding-system-for-read cs-r)) |
251 (coding-system-for-write | 253 (coding-system-for-write |
252 (or coding-system-for-write cs-w))) | 254 (or coding-system-for-write cs-w))) |
253 (open-network-stream-internal name buffer host service protocol)))) | 255 (open-network-stream-internal name buffer host service protocol)))) |
254 | 256 |
257 (defun set-buffer-process-coding-system (decoding encoding) | |
258 "Set coding systems for the process associated with the current buffer. | |
259 DECODING is the coding system to be used to decode input from the process, | |
260 ENCODING is the coding system to be used to encode output to the process. | |
261 | |
262 For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]." | |
263 (interactive | |
264 "zCoding-system for process input: \nzCoding-system for process output: ") | |
265 (let ((proc (get-buffer-process (current-buffer)))) | |
266 (if (null proc) | |
267 (error "no process") | |
268 (get-coding-system decoding) | |
269 (get-coding-system encoding) | |
270 (set-process-coding-system proc decoding encoding))) | |
271 (force-mode-line-update)) | |
272 | |
255 ;;; code-process.el ends here | 273 ;;; code-process.el ends here |