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: Make call-process (and start-process?) filename handlers? Date: Sun, 12 Jan 2003 06:55:50 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <84isxdpyg5.fsf@lucy.cs.uni-dortmund.de> <200301102352.h0ANqoK01404@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1042373609 25640 80.91.224.249 (12 Jan 2003 12:13:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2003 12:13:29 +0000 (UTC) Cc: kai.grossjohann@uni-duisburg.de Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18XgzY-0006fN-00 for ; Sun, 12 Jan 2003 13:13:28 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Xh6W-00027M-00 for ; Sun, 12 Jan 2003 13:20:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Xgzh-0001JV-00 for emacs-devel@quimby.gnus.org; Sun, 12 Jan 2003 07:13:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Xgxy-0000X4-00 for emacs-devel@gnu.org; Sun, 12 Jan 2003 07:11:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18XgwS-00008M-00 for emacs-devel@gnu.org; Sun, 12 Jan 2003 07:10:17 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XgiU-0005Lu-00 for emacs-devel@gnu.org; Sun, 12 Jan 2003 06:55:50 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18XgiU-0004LZ-00; Sun, 12 Jan 2003 06:55:50 -0500 Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-reply-to: <200301102352.h0ANqoK01404@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10690 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10690 The `shell-command' precedent as well as the `dired-call-process' precedent show that there is something to say for `call-process' (and by extension `start-process') to call a file-name-handler depending on default-directory. I'm not convinced. dired-call-process is used for a few specific programs, to operate on files in the default directory and its subdirectories. In those limited cases, it should do the right thing. I'm concerned about shell-command, because it looks like this will make all shell commands execute remotely when you are visiting a remote file. That is not natural, and not necessarily correct; it could cause a painful surprise. It might be ok as a special exception feature, if it were documented as one. Currently it isn't. If we did something like this for call-process, I expect it would break programs that run call-process for specific commands that do not use the default-directory. They expect the command to do the same thing regardless of whether default-directory is remote.