Re: Connection local profile does not change variables

Simon Chevolleau <[email protected]>
Newsgroups gmane.emacs.tramp
Organization Homebase
Message-ID <[email protected]>
Hi Michael,

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 ?

Best regards,
Simon

Michael Albinus <[email protected]> writes:

> Simon Chevolleau <[email protected]> writes:
>
>> Hi TRAMP community,
>
> Hi Simon,
>
>> I'm trying to set connection local profile work.
>> I connect to a remote directory through SSH using bookmark.
>> But when I check the variables, none have changed and
>> connection-local-criteria is set to nil (indicating that no profile has
>> been set ?).
>> Can someone help me understand what's going on ?
>>
>> Best regards,
>>
>> Config:
>> (after! tramp
>>   (setq connection-local-criteria-alist nil)
>>   (setq connection-local-profile-alist nil)
>>   (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)
>>   )
>
> connection-local-criteria is a global variable, which is let-bound while
> executing with-connection-local-variables. Afterwards, it is nil,
> again. So this doesn't mean that connection-local variables aren't set.
>
> You might check instead the values of the buffer-local variables you
> have declared, whether they are set accordingly in the remote buffer.
>
>> Simon CHEVOLLEAU
>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.