From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: executable-find in files.el Date: Sat, 14 May 2005 16:58:10 +0200 Message-ID: <87ekc9lurh.fsf@gmx.de> References: <01c55657$Blat.v2.4$7979dc20@zahav.net.il> <87fywt6128.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116082916 24405 80.91.229.2 (14 May 2005 15:01:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 May 2005 15:01:56 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 14 17:01:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DWy92-0002Wz-Ka for ged-emacs-devel@m.gmane.org; Sat, 14 May 2005 17:01:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWy9g-0001wF-RZ for ged-emacs-devel@m.gmane.org; Sat, 14 May 2005 11:02:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DWy8b-0001Uc-Tp for emacs-devel@gnu.org; Sat, 14 May 2005 11:01:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DWy8O-0001J6-Lx for emacs-devel@gnu.org; Sat, 14 May 2005 11:01:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWy8M-0001I3-LK for emacs-devel@gnu.org; Sat, 14 May 2005 11:00:54 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1DWyCt-0000ej-47 for emacs-devel@gnu.org; Sat, 14 May 2005 11:05:35 -0400 Original-Received: (qmail invoked by alias); 14 May 2005 14:58:12 -0000 Original-Received: from pD9E71529.dip0.t-ipconnect.de (EHLO localhost.local) [217.231.21.41] by mail.gmx.net (mp013) with SMTP; 14 May 2005 16:58:12 +0200 X-Authenticated: #3708877 Original-To: Stefan Monnier User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37122 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37122 Stefan Monnier writes: > In my view, the point of executable-find is to figure out whether there is > a command that we can run. If it tells us "I found /ssh:foo/bar/baz", but > then call-process fails because it doesn't work through Tramp, I think it's > a problem. Tramp does not consider `exec-path' (it uses `tramp-remote-path' instead of). The reason is that `exec-path' would be ambiguous for Tramp - it is needed to find local executables (say "ssh") and remote ones. I agree with Stefan that, as long as `file-executable-p' returns meaningful values for remote files, there must be a meaning for `exec-path', `executable-find' and `start-process' as well in the remote case. For `call-process' this has been done already, although I don't understand why a new function (`process-file') was needed. Otherwise the problem mentioned by Stefan wouldn't exist. > Stefan Best regards, Michael.