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?Luiz_Rom=C3=A1rio_Santana_Rios?= Newsgroups: gmane.emacs.help Subject: Re: tramp-sshfs doesn't seem to respect tramp-remote-path Date: Thu, 8 Aug 2024 10:37:54 -0300 Message-ID: <3f15bb51-8145-4b79-9465-12dfa063729b@tecgraf.puc-rio.br> References: <072f5d9f-42d9-4d64-a9f0-e49ca0a1142d@tecgraf.puc-rio.br> <87h6c6g72m.fsf@gmx.de> <7a469804-eb2a-4aab-8e7f-31b4147c2f05@tecgraf.puc-rio.br> <871q39okab.fsf@gmx.de> <1a94e324-1a79-4c9a-8eeb-770e7249b523@tecgraf.puc-rio.br> <87a5hxldfc.fsf@gmx.de> <0359c325-007d-4cae-82b7-c262214c33a2@tecgraf.puc-rio.br> <87r0azkuqf.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31216"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird 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 Thu Aug 08 15:38:57 2024 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 1sc3M0-0007sn-Li for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Aug 2024 15:38:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sc3LJ-0002Zb-0m; Thu, 08 Aug 2024 09:38:15 -0400 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 1sc3LC-0002ZJ-4o for help-gnu-emacs@gnu.org; Thu, 08 Aug 2024 09:38:06 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sc3L7-0007ed-AL for help-gnu-emacs@gnu.org; Thu, 08 Aug 2024 09:38:05 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1fc49c0aaffso9017295ad.3 for ; Thu, 08 Aug 2024 06:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecgraf-puc-rio-br.20230601.gappssmtp.com; s=20230601; t=1723124278; x=1723729078; darn=gnu.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=MxcqhxFUzteU+O1D8doruJVMXdoM9prAAo3Kgx42bVA=; b=NONXsoNdO4Kv0vPYBrvalxqcy8DsjHXvjFFKdXG35o6QIgGJXsI1Sa2hZv2ty7aRgA gDJjpPViOncQpkRnFQEO8fkur2Vp3ix2hiFLjzudTrcaWog8SK09rw0vB9keNHNNkv/G gQO/wUd/LwqxfnFJgz/KrFmuVLcMOQw2UhcUZa99QIK5apNfY4PSYnUjxl+mvn9dBmdU 4pr4AMulzXmbEBOUMO12ABDVYWbngIwEhv5tgujVNE7KlGj0dtY2+HJ/1Q0ZHthrPJtb VZIRv3aJGUhDC+mYFDrvQpUP+SVRIHFIjbCdMD6j141QkGNRlDeq4WLis3w9m9HC17Uu SrzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723124278; x=1723729078; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=MxcqhxFUzteU+O1D8doruJVMXdoM9prAAo3Kgx42bVA=; b=uxLQI8lecQTbzKFYe2C6hRpoZGUu5bvZN+PfTc/9IIzr59Bi9h2Pwz4GR74w20Y10W 3XoKLWAtyT5m6VV/GEZWGrrxqYf9teDs3gKtY4+BRT2yfhVy9HUpcjt0R3jp/YAXVzKK W87XH2mt4j+KOC5lwC4Uey7fkDkQHqqQyV0AtGT92gsuyVG7+y/KsIXfeJYVu8+V6gfI UlaBNR25vjY+y3kOnLTWXfAfyfO9eJCTaHlCgYmT1aOyEJDCntF7zytLXLDyKdGU+VbM KsjiIs2/jMuC8KB20g1rPzGuUJr7EVReo/o/C0Wf/sq+aXbmKHmfQRac5Q8AeHWFw35h JOaQ== X-Gm-Message-State: AOJu0Ywauo02QkLTLW74h0lMx2p1bmu3qi3k4G9WuhSQ9LR8NAKbX9V/ yPpZS3EPZlNmO2MM6F7AS7elu7tFUmpzC+AcfjuTs1xB4kgj9mzUPibJlyj+gpZMPaGMHLFj1zI 9VtU= X-Google-Smtp-Source: AGHT+IFdSkfqUJOiAqvlTekEYq0OxWxw6+waMQeJq82yJYtf8xmrjOmUue9V/VffnKRY3ifwwn767w== X-Received: by 2002:a17:902:ce87:b0:1fd:6f24:efb2 with SMTP id d9443c01a7336-200952478dfmr20897805ad.19.1723124278129; Thu, 08 Aug 2024 06:37:58 -0700 (PDT) Original-Received: from [10.16.0.34] (gwvpn2.tecgraf.puc-rio.br. [139.82.86.198]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff58f272f0sm124666195ad.4.2024.08.08.06.37.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Aug 2024 06:37:57 -0700 (PDT) Content-Language: en-US In-Reply-To: <87r0azkuqf.fsf@gmx.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=luizromario@tecgraf.puc-rio.br; helo=mail-pl1-x635.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:147545 Archived-At: Em 08/08/2024 10:30, Michael Albinus escreveu: > The 'query the "remote-path" property' looks into the Tramp cache for > the given connection. If there is a value, it is used. Otherwise, the > code is executed, which is (process-file "getconf" nil t nil "PATH"). > > The result is stored in the cache; next time the function is called it > uses the cached result. > > Best regards, Michael. Thanks for the explanation. Any reason we couldn't just query `tramp-remote-path` instead of calling getconf? I've been using eglot with sshfs for a while and it doesn't seem to have any trouble calling a remote clangd process. I'd be very interested in ironing out sshfs. I work remotely through an ssh connection everyday and sshfs has greatly improved performance and stability compared to the regular ssh, but this issue prevents me from e.g. calling magit. I've never looked into emacs's code, but I know a little emacs-lisp from writing my own .emacs file. Where do I look for resources on adding support to `tramp-remote-path` on sshfs? Regards, Romário.