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?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file Date: Tue, 28 Feb 2023 15:23:24 +0000 Message-ID: References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.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="29720"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jeberger@free.fr, 61748@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 28 16:24:23 2023 Return-path: Envelope-to: geb-bug-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 1pX1q1-0007a1-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Feb 2023 16:24:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX1pj-0008Je-5L; Tue, 28 Feb 2023 10:24:03 -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 1pX1pi-0008JW-BN for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 10:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX1pi-0007kx-3o for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 10:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pX1ph-0003AL-K5 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 10:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2023 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61748 X-GNU-PR-Package: emacs Original-Received: via spool by 61748-submit@debbugs.gnu.org id=B61748.167759782212144 (code B ref 61748); Tue, 28 Feb 2023 15:24:01 +0000 Original-Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:23:42 +0000 Original-Received: from localhost ([127.0.0.1]:51776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1pO-00039o-DP for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:23:42 -0500 Original-Received: from mail-oo1-f42.google.com ([209.85.161.42]:38737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1pM-00039a-VF for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:23:41 -0500 Original-Received: by mail-oo1-f42.google.com with SMTP id u3-20020a4ad0c3000000b0052541ef0bafso1606692oor.5 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 07:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677597815; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wTkeS0WwGDUQ8pKqn+y48FAz4begy602mNTJ1vKNlLo=; b=qDaqKh7hYYKKGnu5DJX6PkqT7tYCoACWOLJLL8WY0EFwT+cK3hIWHfPTT2jhA7lOiP SnGniBZ/uqedkcThabfPik+DY3v9bnQP7qa3jN1D7Ve9gBta0HQ/wzPtsUC5MOD70ja8 yLxII1aQ0oJLA8YeaLkDSjnTxj0kZxE2bvR+lwIbjgV6ebPGSqHwooeaoSWQCxFGiqXV FU0sX3ghkMG0nzmiIehvZrnjx7Lp4QW3TSgGPMduD+do0B4Mb2NliYy1WCqpcc++aIbV NHkJbxxCaH82kYayh03PT0Qr0dXMUZt5D8xKoQZX7chcKHIgnvASeCSJGjX37n00FSAU 9O0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677597815; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wTkeS0WwGDUQ8pKqn+y48FAz4begy602mNTJ1vKNlLo=; b=4/L1XCgcVo4rwushDwJkhtkH+e6mEs07nwY3PlDgFmzfmKewcIkMYNJllq7NbCUDeK +q4cMRLgKpWKpIJSOgCT75YGSOd6IT73SKerG83MHh7rXU/zRtNdXoVO/BTNvllodx/m Z2H/CNRuwHVN5mys9xBlUzBEcFR3yJTC4m07wRcAIVMbkNZwe/Jt0d2XjWtoKCr4UQpY Hink/p0OS/mbZe95bjdZRcCMsPX4vIk4qmGwMa26YHSqpORPCXanYsbuFpcrHzBIc9Yj M5Q8+Y/UOJV0OskkO6tPjAET2oWfK0MUhsLdvBr9KzueTZnc9xz8L9xzoBkmvi3hRr1e aCuQ== X-Gm-Message-State: AO0yUKUiVJngf52/tcNjinJZuhzaOX431fxcM+JfXnvvyHWSjQ33LtRj T0mRkQM++fD2dcmpkdSYy3hbEiEeQ1v0celhXt8= X-Google-Smtp-Source: AK7set8S+GKhvIuyJC+6kjtIiS9cqR8xHDFZEUqWTzCh2UPBAeaRZFHzm0tKhb15Hj/lILvs659SEfJcT7gMf2JWTg0= X-Received: by 2002:a4a:c585:0:b0:517:bff1:77e with SMTP id x5-20020a4ac585000000b00517bff1077emr909772oop.1.1677597815172; Tue, 28 Feb 2023 07:23:35 -0800 (PST) In-Reply-To: <87bkld6ctm.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256983 Archived-At: On Tue, Feb 28, 2023 at 3:15=E2=80=AFPM Michael Albinus wrote: > > Indeed, as the adage goes, cache invalidation is a hard problem of > > computer science, we deal with it every day. But it's a bit unfair to = expect > > the user to solve it. > > I don't expect a user to solve it. And a user shouldn't expect that > changing a variable is sufficient. I respectfully but diametrically disagree here. Here's an untested patch that could solve this. It can probably be made smarter by only invalidating the cache when a change to the variable is detected. Jo=C3=A3o diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index ec8437176db..eae00923395 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -5578,11 +5578,7 @@ tramp-get-remote-path ;; Expand connection-local variables. (tramp-set-connection-local-variables vec) (with-tramp-connection-property - ;; When `tramp-own-remote-path' is in `tramp-remote-path', we - ;; cache the result for the session only. Otherwise, the - ;; result is cached persistently. - (if (memq 'tramp-own-remote-path tramp-remote-path) - (tramp-get-process vec) vec) + (tramp-get-process vec) "remote-path" (let* ((remote-path (copy-tree tramp-remote-path)) (elt1 (memq 'tramp-default-remote-path remote-path))