[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New functions remote-exec-path and remote-executable-find
From: |
Michael Albinus |
Subject: |
New functions remote-exec-path and remote-executable-find |
Date: |
Mon, 18 Jun 2018 17:16:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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.
Comments?
Best regards, Michael.
- New functions remote-exec-path and remote-executable-find,
Michael Albinus <=