unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Retrieve values of variables in remote files
@ 2023-01-06 13:42 André A. Gomes
  2023-01-07 12:20 ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: André A. Gomes @ 2023-01-06 13:42 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: michael.albinus

Hi,

I expected that running the following on a remote Tramp buffer would
give me the right value.

--8<---------------cut here---------------start------------->8---
(with-connection-local-variables shell-file-name)
=> "/bin/sh"
--8<---------------cut here---------------end--------------->8---

The right value would be "/data/data/com.termux/files/urs/bin/bash"
since this is a remote buffer on Termux.

I'm a bit surprised since xref-matches-in-files uses
with-connection-local-variables and it always gets the right values.

Any idea?  Thank you.


-- 
André A. Gomes
"You cannot even find the ruins..."



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-10 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-01-10 14:57       ` André A. Gomes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).