From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Proposal for extending set-process-filter Date: Tue, 27 Apr 2004 12:30:01 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083084178 25828 80.91.224.253 (27 Apr 2004 16:42:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2004 16:42:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 27 18:42:47 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIVfS-0005Df-00 for ; Tue, 27 Apr 2004 18:42:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIVfR-0001Rz-00 for ; Tue, 27 Apr 2004 18:42:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIVY7-0006dQ-Rr for emacs-devel@quimby.gnus.org; Tue, 27 Apr 2004 12:35:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIVVk-0005yF-Bj for emacs-devel@gnu.org; Tue, 27 Apr 2004 12:32:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIVV9-0005nl-W2 for emacs-devel@gnu.org; Tue, 27 Apr 2004 12:32:39 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIVV9-0005nN-97 for emacs-devel@gnu.org; Tue, 27 Apr 2004 12:32:07 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1BIVT7-0004j7-OU; Tue, 27 Apr 2004 12:30:01 -0400 Original-To: David Kastrup In-reply-to: (message from David Kastrup on 27 Apr 2004 01:55:46 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22250 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22250 1) a function which gets two arguments. [insert old description] 2) a buffer into which output gets inserted. You should use set-process-buffer for that. 3) a file name for output. Writing it directly into a file is somewhat ugly as an idea. 4) t to stop accepting output. Why do we need that option? A filter function can easily discard the data. 5) a list of filter/file descriptor associations. The car's of the elements of this list are an item from 1)-4) as above, while the cdr is a list of file ids for which this item is supposed to apply. That is very ugly. There has to be a better way. Anyway, the hard part of separating stdin from stderr is that they both come through the same channel in the pty.