From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Andr=C3=A9_A=2E_Gomes?= Newsgroups: gmane.emacs.help Subject: Re: Retrieve values of variables in remote files Date: Tue, 10 Jan 2023 14:39:38 +0200 Message-ID: <87lemaftrp.fsf@gmail.com> References: <87k01z7p9b.fsf@gmail.com> <87v8lir0x2.fsf@gmx.de> 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="37522"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 10 14:29:34 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 1pFEh4-0009DU-Fe for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Jan 2023 14:29:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFDwR-0000FP-Mj; Tue, 10 Jan 2023 07:41:23 -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 1pFDuq-0007tx-VS for help-gnu-emacs@gnu.org; Tue, 10 Jan 2023 07:39:53 -0500 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFDuo-0006ta-4y for help-gnu-emacs@gnu.org; Tue, 10 Jan 2023 07:39:44 -0500 Original-Received: by mail-lf1-x131.google.com with SMTP id j17so18206993lfr.3 for ; Tue, 10 Jan 2023 04:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=0EVTVvn/Dri0yDbx/5SOuASCg6yCIcG4+5UlB1j6vMw=; b=Afa1pj5k4VqKS85tQMAcY6Ete6Vw5sIMK2zFwAO8rXOs/HFmrrk0DpPcygLiktmWGX n8G4NojCGvD84XmjRZlVlzBuyVfGTPun4pKCdxC44snFwII4O0Vm5ICROsiNpl3E4nIE JbetxlH/4fHj6j8o1OrIgCPrSlP24BtfETtiuwuC/zcbNNermmHo02VCXU+WynAMWqXr j+158lgjh3F/7xC9szgatVH+FDMuFt0An1VkCHhOJVUYsmvyVroYSPtSDI03g/wM07DO 3Naka9tw0DaxrCTbwNv25xfTLGiaACv4itfPUDSweOoUI1KenMuJR3P/w4In1R7bgzaH z3kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0EVTVvn/Dri0yDbx/5SOuASCg6yCIcG4+5UlB1j6vMw=; b=22ZkYYnieKp+2cbaIJKMjbSVVIF4FSvtLUSlQKfRRf5BjZMQr3jPBfkFS/VDUg81fI 85BWuPHEqeqgkcMRVadYTb0cobqrXRg7kWRWEO2kpr0bS1rZbymTkcMDjrNpBEYKP6hJ cgqN+GCmzuzcWB5Xtdl/yniyo0ujvKwEHx7u0xrWrSz+GQtN8faZirGzOshQ1HFlhCHA fdbDZb8csgXoox5NJXspkgD25OnpIr9UHfTNNS/s6XPqmRPlZoy4/bXBu5Vc8nm8k5XE /xIuiYwbINRfoWuTI+PjRik1NSmwrGA8AWngVD2ZhPdnMjLE3fVQUYc3h2YNfXgyTuB3 7vYw== X-Gm-Message-State: AFqh2ko509PcRwQf6q2mPlq03dzDsaD0eE7n9U0i0QxLSgB0W7hBBOav 2zgfT7f5YZ0MJPXbU/MGFbwCrSwaq2/Sjg== X-Google-Smtp-Source: AMrXdXvas/Ra9VYWfChgrxgiLNSRtY63gppZtIQ+60nhUFs9fP+vE9dT1vFm91rSCpOtg4yhxP61tw== X-Received: by 2002:a05:6512:3c89:b0:4b6:fddc:1fcd with SMTP id h9-20020a0565123c8900b004b6fddc1fcdmr1433073lfv.23.1673354379770; Tue, 10 Jan 2023 04:39:39 -0800 (PST) Original-Received: from guix-xps13 (82.131.75.242.cable.starman.ee. [82.131.75.242]) by smtp.gmail.com with ESMTPSA id x11-20020a056512078b00b004b5821219fbsm2179139lfr.60.2023.01.10.04.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 04:39:39 -0800 (PST) In-Reply-To: <87v8lir0x2.fsf@gmx.de> (Michael Albinus's message of "Sat, 07 Jan 2023 13:20:41 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=andremegafone@gmail.com; helo=mail-lf1-x131.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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:142188 Archived-At: Hi Michael, Thank you for the reply. I understood why I'm confused, so I'll rephrase it. Here's my tramp config: --8<---------------cut here---------------start------------->8--- (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/t= mp"))) (add-to-list 'tramp-connection-properties prop)) --8<---------------cut here---------------end--------------->8--- When I'm on a remote Termux buffer, evaluating (with-connection-local-variables temporary-file-directory) gives me "/tmp/", which is wrong. But when I run the command xref-matches-in-files on a remote buffer, I get the following in the *Messages* buffer: --8<---------------cut here---------------start------------->8--- Copying /tmp/ppfrSh2Q4t to /ssh:termux:/data/data/com.termux/files/usr/tmp/= tramp.lT1BW5...done --8<---------------cut here---------------end--------------->8--- Which indicated me that Tramp is pointing to the right temp dir at Termux. I don't understand what's happening here...=20=20 > What is the value of variables connection-local-criteria-alist, > connection-local-profile-alist and connection-local-variables-alist, > evaluated in the respective buffer? Respectively: --8<---------------cut here---------------start------------->8--- (((:application tramp :protocol "adb") tramp-adb-connection-local-default-shell-profile tramp-adb-connection-local-default-ps-profile) ((:application tramp) tramp-connection-local-default-system-profile tramp-connection-local-default-shell-profile)) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- (((:application tramp :protocol "adb") tramp-adb-connection-local-default-shell-profile tramp-adb-connection-local-default-ps-profile) ((:application tramp) tramp-connection-local-default-system-profile tramp-connection-local-default-shell-profile)) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- nil --8<---------------cut here---------------end--------------->8--- > Btw, which Emacs version / Tramp version are you using? Emacs version 28.2, tramp version 2.6.0. Thanks. --=20 Andr=C3=A9 A. Gomes "You cannot even find the ruins..."