From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Retrieve values of variables in remote files Date: Tue, 10 Jan 2023 15:11:35 +0100 Message-ID: <87lemazdgo.fsf@gmx.de> References: <87k01z7p9b.fsf@gmail.com> <87v8lir0x2.fsf@gmx.de> <87lemaftrp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32284"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?Andr=C3=A9?= A. Gomes Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 10 17:08:45 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFHB5-0008FW-OA for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Jan 2023 17:08:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFFLx-00010J-Lt; Tue, 10 Jan 2023 09:11:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFFLt-0000zF-6O for help-gnu-emacs@gnu.org; Tue, 10 Jan 2023 09:11:45 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFFLr-0005Sj-1j for help-gnu-emacs@gnu.org; Tue, 10 Jan 2023 09:11:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1673359898; bh=gey43aulBGzu/wkYpPMU+b7MekelNtLWtJjoPGW4qvw=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ADSI/8HH5Ls1HZuK1tdJMQd5DwOrgJAnfToS/qKz7ylY45v1Pxeli0cEEpSQBudz8 g8nt3iZBo/ocVF+y8iiGmbp+BkoKGE9JO0ZK3aG7SspkhNZ8pfjjjD3SW4WALPu9T2 fYJSaYTQ3CJfqoqGzhCQpKh+GLTN3Tple/qyjrnooPudesF6x0av8bRrpjj6rE+uaD hR1zoLb2Ih/mE/TJ5K/kGWqr3Exd2UcS5FVMWPxSkfE4FOBrm+HEsC6cmeICyCehnT RMD/1rgHuxsGoRTallSS+SYsKOBMiqHjWQvl9fEdi+XyNkn7TrZWxymd5+esgK5dvE aVdpfoSf2Cmlw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.37.45]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MYvcA-1pJWh82JTk-00Uqw2; Tue, 10 Jan 2023 15:11:38 +0100 In-Reply-To: <87lemaftrp.fsf@gmail.com> (=?utf-8?Q?=22Andr=C3=A9?= A. Gomes"'s message of "Tue, 10 Jan 2023 14:39:38 +0200") X-Provags-ID: V03:K1:XBadIkwHbeNFz78RGfPLaAxVEWdxOPI3gL73b9bEBO8MLUWg11L 6E+rBUlE2yFkfu2EGrDGg39DCjrK2wTKNmTu25YCoYd6iKslUL3AaNAHFkSZLWRURkwVEJA 3sXU2m8YaM+Nx+gZ3B+o7zhfr2powId4dryAjVab50NCO3KZRB+eW3ZWQlp6GOu4RPYMsDC 3ItLc7bJgDC0cPI0djrKQ== UI-OutboundReport: notjunk:1;M01:P0:lz8RBP+tpy8=;V/h3fUzxwyUkjw2pHDP03APJTyL 2SxuwLigzVnu9nCPGh8gD//AeWLnFrN63hcNJEXX6xMWWxNrRKPTusMCG03aNPfcazy6GTyY9 z8WxT1amI4j2Rb4qt1CGFfIborEuu2uBAaykI4u7yGq2xHo33sbbeR3c/PkJeCxrfwSGggZ9W jj/qF1H4CcdjnJPR3NsD3CLrV3l7gPWuv2zEbitosjt4hyrrQRH7t4jtabFo6ix6ICgTrC8R5 KubxcfVrluvnwrNRsYo/xRXyzNCKMah4CauAlpO8yigAXcTb+TcBWUiCDcrMNoGg+pQ83fdRx 7kFZyUQq8MzjNz2Ou4Q/PGtOv907iCKo6jX4uL5yDxepMajvvQyjFOaqG+IPKnkYqbUaJKDBC v62NHdc07A4zW1yLSv2aAHt7bqYUXx76VeaXiCg/PNm2BTi1vDTzVQ16uGtgm9WDF5sB0I0+i 4FevuIzYhjxeNFN3Ts6Nzx6iU2jfDExKnPbQoSu8L6cPEe/iMXDL038C3BkBWeTMWz/RDlv7T zJ4XXjc8xztLI62CdK0qwUJeTDTeUcRg8nhL9gom0SgWnn4FT5zV5C3ZT5Df/ZYcRzPl3aI+r ERH0zQVK+d/YtbeVhgcBeBPcoKM+ihhFIYdwiSmxdB6XfWaTlF3C/J59XDgCx8lRW6J9vli0x 9OmxQUAlPLbSzBOvny7FfUbFUYvpegSMxc6gnfIQSRew9x09ERjfvdBYtsFwViHAmGfb3Xhxa WbyVdt6iVgfb5EitmTPm99eg50twLA5EdxWE512EV5v5rIikmyLU90omoddprjag2X0ubopR Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142194 Archived-At: Andr=C3=A9 A. Gomes writes: > Hi Michael, Hi Andr=C3=A9, > 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/fil= es/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/tm= p/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...=20=20 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.