[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New functions remote-exec-path and remote-executable-find

From: Robert Pluim
Subject: Re: New functions remote-exec-path and remote-executable-find
Date: Mon, 18 Jun 2018 17:59:22 +0200

Michael Albinus <address@hidden> writes:

> Hi,
> 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.
> And while we are at this, a second new function `remote-executable-find'
> comes to mind. Like `executable-find', it returns the local absolute
> file name of a command, also determined by `default-directory'. This
> function doesn't need file name handlers, it would use
> `remote-exec-path' for its implementation.
> I don't need `remote-executable-find' for fixing bug#31704, but I
> remember that such a function has been asked for in the past.

Hmm, is this not what connection-local variables are for?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]