From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: New functions remote-exec-path and remote-executable-find Date: Mon, 18 Jun 2018 18:47:20 +0200 Message-ID: <87lgbchwiv.fsf@gmx.de> References: <87po0oi0qa.fsf@gmx.de> <8736xkcch1.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529341438 25189 195.159.176.226 (18 Jun 2018 17:03:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Jun 2018 17:03:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 18 19:03:54 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUxZJ-0006TQ-CH for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2018 19:03:53 +0200 Original-Received: from localhost ([::1]:36051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUxbQ-0002Np-DS for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2018 13:06:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUxJO-0006Z7-5B for emacs-devel@gnu.org; Mon, 18 Jun 2018 12:47:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUxJL-00081w-0y for emacs-devel@gnu.org; Mon, 18 Jun 2018 12:47:26 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:44497) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUxJK-00081b-Md for emacs-devel@gnu.org; Mon, 18 Jun 2018 12:47:22 -0400 Original-Received: from detlef.gmx.de ([212.86.38.114]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MLfLH-1fU8660FJj-000tR0 for ; Mon, 18 Jun 2018 18:47:21 +0200 In-Reply-To: <8736xkcch1.fsf@gmail.com> (Robert Pluim's message of "Mon, 18 Jun 2018 17:59:22 +0200") X-Provags-ID: V03:K1:07tac30jbVu9802AlsFvctMcP8OOg1jFtLCIgHrnJXXyyG/eoNW 8eUM00T98Imvkv8SzQUeifMt6kwsaQdhGHSShYSa9z8QANiS4sYTNkPdRpJBS12L5oEx1Xz 9lzeNwibwShQrhDpV+Su8aULb8dOsizCvMOn/6z8VNusXRCcSJvQ3sfHt3TjEoj/qp6mrct VrXbibDpOTOg4NXsCCNgQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:BtGO5zUm0mI=:dLERDSGKWNR1WwJ30oqGVt z8cWnuCPBndQ04H5PyucxnnYee+sV/TXuO+yZXRYG9TGDyfRL4RgOK26lNfMZiik3stSLbMW0 4fARVbt478ELlD25TT/ogTCqYP5YePcpPTYhDwPqldoARHkN4CHeb8Jw8AszqEhRzLoRgJaJZ bhcH7cS/IemzMV7a071apvkVaXhgEzKcAyYR0nz58v/kCA734cl32+FsYyfE4e3kG98tKT1lD DrKR+0DlQ0qGDQSGhx9dTzyXgbMIHwk7CwW+HGpDfM4MGTAkShDhkyoM0yBdKmxwpn5R9Panh SbA97PweoF09uufZguE++PXyv4s+EbMi8M5VbkRVOFnkKEE3aDoUO021SgD7aScDupyj1ahgn UWi4hN1BeB66vK5XB6POk9qDaZueR4aeLCNBV9mOPKc5QlXk0PYHMfuKL36BG3v58sn1OrfhG lMOp4eiyOF2QoyVgBiv+uhxQiyeFCya1uF8FJfxw99zgtvxp/wQdnSaf6YQPe6LWVdMjllF51 c+B+hZfJxU/7uv5QSqifhCnIdo373wwX3AhgNA9Rd8oQNobHbJNYUzMmkwS2siVDf2JkM1bmT gtuVHWImx0tFLbE5NhkK5kN97Uf7SoWMKysHtE2uQwtXwxybTtMIFdkwZjMCcj++F70qOPlU1 vjSfVqz7lNSqPM4U426w3rxRNscITIw4ICssTvJM9lIZ3AY2d6lqkXnrcJKEdtIkfIWimKIZ3 Zirao6MZ6NRmNQZSb7oPCjie4P3JDWa6yiaPXvj+uG94d7XqcXw9RE+VGhOt6+/vxdsjWhk+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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 Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226463 Archived-At: Robert Pluim writes: Hi Robert,, > >> these days I'm working on bug#31704. The point is, that for searching of >> programs, always `exec-path' (a list of local directories) is taken, >> even if the shell runs on a remote host. Therefore, I propose a new >> function `remote-exec-path'. In case of a remote `default-directory', >> the function returns a list of directories which belong to that >> host. Implemented via file name handlers. For a local >> `default-directory', `exec-path' is returned. > > Hmm, is this not what connection-local variables are for? Usually yes. But we cannot change `exec-path' to another connection-local value. If you are visiting a remote buffer, you still want to call local programs, finding their absolute file name on your local host. > Robert Best regards, Michael.