emacs-devel
[Top][All Lists]
Advanced

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

Re: master 70964b9: Mention `exec-path' in some process related doc stri


From: Michael Albinus
Subject: Re: master 70964b9: Mention `exec-path' in some process related doc strings
Date: Fri, 21 Aug 2020 19:35:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Gregory Heytings <ghe@sdf.org> writes:

Hi Gregory,

>>> --- a/src/process.c
>>> +++ b/src/process.c
>>>  :command COMMAND -- COMMAND is a list starting with the program file
>>> -name, followed by strings to give to the program as arguments.
>>> +name, followed by strings to give to the program as arguments.  If the
>>> +program file name is not an absolute file name, `make-process' will
>>> +look for the program file name in `exec-path' (which is a list of
>>> +directories).
>>
>> This is not true in the remote case (default-directory is remote,
>> and :file-handler is non-nil). The program is not looked for;
>> everything in the :command list is used literally.
>>
>
> I'm not sure I understand what you wrote correctly, but if indeed "the
> program is not looked for", it seems to me that the program file name
> must be an absolute path, in which case the sentence added by Lars is
> in fact still true in that case.  Or is something else than PATH and
> exec-path used in that case (for example the shell's PATH environment
> variable on the remote host)?

The usual PATH settings of Tramp will be applied. That is, on the remote
host PATH is set to the value of tramp-remote-path, and a prgram (if not
given by an absolute path) must be found there.

Again, I don't believe this must be told in the docstring of
make-process. Tramp discusses it in its manual.

> Gregory

Best regards, Michael.



reply via email to

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