From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: New functions remote-exec-path and remote-executable-find
Date: Tue, 19 Jun 2018 10:16:10 +0200 [thread overview]
Message-ID: <87h8lzfayd.fsf@gmx.de> (raw)
In-Reply-To: <jwvtvpzbmod.fsf-monnier+gmane.emacs.devel@gnu.org> (Stefan Monnier's message of "Mon, 18 Jun 2018 21:19:51 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
Hi Stefan,
>> 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.
>
> I think we could even name it just `exec-path`. IIRC they'd be built by
> examining the $PATH of the remote shell, right?
Yes, it's a better name. The value is not derived from the remote $PATH,
but from `tramp-remote-path'
The name `remote-executable-find' (or something else, different from
`executable-find') must be kept. `executable-find' is supposed to work
on the local host.
> But I wonder: wouldn't there also be a need sometimes to *modify* these
> (remote) exec-paths?
Yes, perhaps. Until now there's even no such mean.
Tramp uses internally the function `tramp-get-remote-path', which caches
the result. Every cache cleanup will trigger to recalculate the result
from `tramp-remote-path'. People could make that variable
connection-local, and change it as needed.
Let's see how this works in practice, and if needed, we could extend the
interface.
> Stefan
Best regards, Michael.
next prev parent reply other threads:[~2018-06-19 8:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-18 15:16 New functions remote-exec-path and remote-executable-find Michael Albinus
2018-06-18 15:59 ` Robert Pluim
2018-06-18 16:47 ` Michael Albinus
2018-06-19 1:19 ` Stefan Monnier
2018-06-19 8:16 ` Michael Albinus [this message]
2018-06-19 12:52 ` Michael Albinus
2018-07-01 17:27 ` Philipp Stephani
2018-07-01 17:41 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h8lzfayd.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.