From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Proposal for extending set-process-filter Date: 27 Apr 2004 11:01:34 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083080393 14461 80.91.224.253 (27 Apr 2004 15:39:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2004 15:39:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 27 17:39:41 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 1BIUgP-0007m5-00 for ; Tue, 27 Apr 2004 17:39:41 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIUgO-0000QB-00 for ; Tue, 27 Apr 2004 17:39:40 +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 1BIUKl-0007UR-GS for emacs-devel@quimby.gnus.org; Tue, 27 Apr 2004 11:17:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIUG1-0006WN-Mi for emacs-devel@gnu.org; Tue, 27 Apr 2004 11:12:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIUFJ-0006MN-F9 for emacs-devel@gnu.org; Tue, 27 Apr 2004 11:12:13 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIU5X-0004GW-NG; Tue, 27 Apr 2004 11:01:35 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 6475B20B1F; Tue, 27 Apr 2004 11:01:34 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 527618BDC1; Tue, 27 Apr 2004 11:01:34 -0400 (EDT) Original-To: David Kastrup In-Reply-To: Original-Lines: 42 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.428, requis 5, BAYES_20 -1.43) 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:22246 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22246 > Give PROCESS the filter function FILTER; nil means no filter. What happens to output when there's no filter? > 1) a function which gets two arguments. [insert old description] Good. > 2) a buffer into which output gets inserted. Good. > 3) a file name for output. Can be handled by (1) just fine. What would you use it for (other than /dev/null which is rather special since append is the same as overwrite)? > 4) t to stop accepting output. What happens to the output? Is it read&thrown away or not read? > 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. Sounds good. > This does not yet do everything needed for a full-bodied eshell: input > redirections (including procedural input, equivalents to filter > functions) and output appending redirection (>>) are not covered > yet. But it would be a first step. Output-appending can be done via a filter-function. What kind of procedural input are you thinking of that can't be done via process-send-string? What is still missing is the ability to open more file descriptors than stdin, stdout, stderr. Stefan