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: Patch: new function process-file (call-process with file handlers) Date: Mon, 18 Oct 2004 09:59:17 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <863c0dnxxe.fsf@ketchup.de.uu.net> <86y8i5m9tf.fsf@ketchup.de.uu.net> <877jppm5x6.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1098108018 4942 80.91.229.6 (18 Oct 2004 14:00:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2004 14:00:18 +0000 (UTC) Cc: kai@emptydomain.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 18 16:00:09 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CJY3U-0002Wt-00 for ; Mon, 18 Oct 2004 16:00:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJYAh-0003gN-Vy for ged-emacs-devel@m.gmane.org; Mon, 18 Oct 2004 10:07:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CJYA1-0003Qb-63 for emacs-devel@gnu.org; Mon, 18 Oct 2004 10:06:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CJYA0-0003QB-66 for emacs-devel@gnu.org; Mon, 18 Oct 2004 10:06:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJYA0-0003Q8-1v for emacs-devel@gnu.org; Mon, 18 Oct 2004 10:06:52 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CJY2g-0000yY-E7 for emacs-devel@gnu.org; Mon, 18 Oct 2004 09:59:18 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CJY2f-0001JY-Td; Mon, 18 Oct 2004 09:59:18 -0400 Original-To: Stefan Monnier In-reply-to: <877jppm5x6.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 17 Oct 2004 16:48:19 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28565 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28565 Looks good to me, except I'm not sure what INFILE should do. INFILE is a standard argument to call-process. Perhaps the file name handler should be found on INFILE instead of on default-directory. The actual use in VC seems to pass nil for that argument, so maybe the commands used do not use their stdin. If so, is it possible to pass some INFILE that would cause the right handler to be chosen? I guess we could use the following convention: if it is a relative file name, then it's a file on the remote host, otherwise, it's a file on the local host that should be passed "manually" by reading the file in a buffer and feeding it via the stdin pipe. What problem are you trying to solve with this suggestion?