tramp-devel
[Top][All Lists]
Advanced

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

Re: Connection local profile does not change variables


From: Simon Chevolleau
Subject: Re: Connection local profile does not change variables
Date: Mon, 11 Mar 2024 08:39:33 +0100
User-agent: mu4e 1.10.8; emacs 29.1

Hi Michael,

It looks like my connection profile is indeed set correctly when I
connect to my remote server.
The output looks like this, so I guess this is working at intended, now
I have to figure out why my packages aren't correctly working with those
variables set now:
  (shell-interactive-switch . \\\"-i\\\")
  (conda--executable-path . 
\\\"/CONDAS/users/schevolleau/anaconda3/condabin/conda\\\")
  (conda-anaconda-home . \\\"/CONDAS/users/schevolleau/anaconda3\\\")
  (shell-command-switch . \\\"-c\\\")
  (shell-file-name . \\\"/usr/bin/bash\\\")
  (detached-dtach-program . \\\"dtach\\\")
  (detached-session-directory . \\\"~/tmp\\\")
  (detached-shell-program . \\\"~/bin/dtach\\\"))
 (detached-shell-program . \\\"~/bin/dtach\\\")
 (detached-session-directory . \\\"~/tmp\\\")
 (detached-dtach-program . \\\"dtach\\\")
 (shell-file-name . \\\"/usr/bin/bash\\\")
 (shell-command-switch . \\\"-c\\\")
 (conda-anaconda-home . \\\"/CONDAS/users/schevolleau/anaconda3\\\")
 (conda--executable-path . 
\\\"/CONDAS/users/schevolleau/anaconda3/condabin/conda\\\")
 (shell-interactive-switch . \\\"-i\\\"))

Thank you a lot!
Best regards,
Simon


Michael Albinus <michael.albinus@gmx.de> writes:

> Simon Chevolleau <simon.chevolleau@gmail.com> writes:
>
>> Hi Michael,
>
> Hi Simon,
>
>> After looking to local variables using `apropos-local-variable`, it
>> appears that variables from my connection local profile are not set.
>> Even by settings this:
>>   (connection-local-set-profiles
>>    nil 'remote-bird)
>>
>> What are my best ways to dig into this problem ?
>
> Run the settings you have shown in your previous message:
>
> --8<---------------cut here---------------start------------->8---
> (connection-local-set-profile-variables
>  'remote-bird
>  '((detached-shell-program . "~/bin/dtach")
>    (detached-session-directory . "~/tmp")
>    (detached-dtach-program . "dtach")
>    (shell-file-name . "/usr/bin/bash")
>    (shell-command-switch . "-c")
>    (conda-anaconda-home . "/CONDAS/users/schevolleau/anaconda3")
>    (conda--executable-path . 
> "/CONDAS/users/schevolleau/anaconda3/condabin/conda")
>    (shell-interactive-switch . "-i")))
>
> (connection-local-set-profiles
>  '(:application tramp :protocol "ssh") 'remote-bird)
> --8<---------------cut here---------------end--------------->8---
>
>
> Then check, whether they are set:
>
> --8<---------------cut here---------------start------------->8---
> (let ((default-directory "/ssh:localhost:"))
>   (with-connection-local-variables
>    (message "%S" (pp (buffer-local-variables)))))
> --8<---------------cut here---------------end--------------->8---
>
> You should see your settings.
>
>> Best regards,
>> Simon
>
> Best regards, Michael.


--
Simon CHEVOLLEAU
Bioinformatic PhD student in human peri-implantation development
CRTI - INSERM UMR 1064 - Equipe 2
30 Bd Jean Monnet, 44093 Nantes Cedex 01
Tel +33 (0)6 64 61 89 46
Nantes, France



reply via email to

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