[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: INSIDE_EMACS and Tramp
From: |
Michael Albinus |
Subject: |
Re: INSIDE_EMACS and Tramp |
Date: |
Mon, 04 May 2020 18:11:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>> The problem with your approach is that it means calling `start-process`
>>> from within a Tramp directory could launch a process with INSIDE_EMACS
>>> that contains ",tramp" even tho the process is running locally.
>>
>> No, Tramp adds the following code snippet to inside-emacs-functions:
>>
>> (when (file-remote-p default-directory) "tramp:2.5.0-pre"))
>>
>> The substring about Tramp appears only when it is needed.
>
> No: `start-process` doesn't look at `default-directory` so the above
> code snippet will add ",tramp" when the default-directory is remote, but
> the process will still be launched locally.
You're right.
>> This gives me another idea: Tramp could adapt INSIDE_EMACS as provided
>> by the packages via process-environment. Hmm, so simple - I should have
>> thought about earlier.
>
> Isn't that what my suggestion does?
Likely. Meanwhile, I've pushed a respective change to master.
> Stefan
Best regards, Michael.
- Re: INSIDE_EMACS and Tramp, (continued)
- Re: INSIDE_EMACS and Tramp, Eli Zaretskii, 2020/05/02
- Re: INSIDE_EMACS and Tramp, Stefan Monnier, 2020/05/02
- Re: INSIDE_EMACS and Tramp, Michael Albinus, 2020/05/03
- Re: INSIDE_EMACS and Tramp, Stefan Monnier, 2020/05/03
- Re: INSIDE_EMACS and Tramp, Michael Albinus, 2020/05/03
- Re: INSIDE_EMACS and Tramp, Stefan Monnier, 2020/05/03
- Re: INSIDE_EMACS and Tramp, Michael Albinus, 2020/05/04
- Re: INSIDE_EMACS and Tramp, Michael Albinus, 2020/05/04
- Re: INSIDE_EMACS and Tramp, Stefan Monnier, 2020/05/04
- Re: INSIDE_EMACS and Tramp,
Michael Albinus <=
Re: INSIDE_EMACS and Tramp, Federico Tedin, 2020/05/03