[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New functions remote-exec-path and remote-executable-find
From: |
Michael Albinus |
Subject: |
Re: New functions remote-exec-path and remote-executable-find |
Date: |
Mon, 18 Jun 2018 18:47:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Robert Pluim <address@hidden> 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.