all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "André A. Gomes" <andremegafone@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Retrieve values of variables in remote files
Date: Tue, 10 Jan 2023 15:11:35 +0100	[thread overview]
Message-ID: <87lemazdgo.fsf@gmx.de> (raw)
In-Reply-To: <87lemaftrp.fsf@gmail.com> ("André A. Gomes"'s message of "Tue, 10 Jan 2023 14:39:38 +0200")

André A. Gomes <andremegafone@gmail.com> writes:

> Hi Michael,

Hi André,

> I understood why I'm confused, so I'll rephrase it.  Here's my tramp
> config:
>
> (dolist (path '("/run/setuid-programs"
>                 "/run/current-system/profile/bin"
>                 "/run/current-system/profile/sbin"
>                 "/data/data/com.termux/files/usr/bin"
>                 "/home/aadcg/.guix-profile/bin"
>                 "/home/aadcg/.guix-profile/sbin"))
>   (add-to-list 'tramp-remote-path path))
>
> (add-to-list 'tramp-remote-path 'tramp-own-remote-path)
>
> (dolist (prop '(("/ssh:termux:" "remote-shell" "sh")
>                 ("/ssh:termux:" "remote-path" ("/data/data/com.termux/files/usr/bin"))
>                 ("/ssh:termux:" "tmpdir" "/data/data/com.termux/files/usr/tmp")))
>   (add-to-list 'tramp-connection-properties prop))
>
>
> When I'm on a remote Termux buffer, evaluating
> (with-connection-local-variables temporary-file-directory) gives me
> "/tmp/", which is wrong.

`temporary-file-directory' isn't handled as connection-local-variable, so
it is always "/tmp".

> But when I run the command
> xref-matches-in-files on a remote buffer, I get the following in the
> *Messages* buffer:
>
> Copying /tmp/ppfrSh2Q4t to /ssh:termux:/data/data/com.termux/files/usr/tmp/tramp.lT1BW5...done
>
>
> Which indicated me that Tramp is pointing to the right temp dir at
> Termux.  I don't understand what's happening here...  

Tramp DTRT :-)

It doesn't use the variable `temporary-file-directory', but the function
with the same name. What happens, if you eval (temporary-file-directory)
in a buffer with a remote default-directory?

> Thanks.

Best regards, Michael.



  reply	other threads:[~2023-01-10 14:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06 13:42 Retrieve values of variables in remote files André A. Gomes
2023-01-07 12:20 ` Michael Albinus
2023-01-10 12:39   ` André A. Gomes
2023-01-10 14:11     ` Michael Albinus [this message]
2023-01-10 14:57       ` André A. Gomes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lemazdgo.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=andremegafone@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.