Re: Connection local profile does not change variables

Michael Albinus <[email protected]>
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
Simon Chevolleau <[email protected]> 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.
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.