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.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 16:50:27 +0100 Message-ID: <87356p6b7g.fsf@gmx.de> 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="16105"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: jeberger@free.fr, 61748@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 28 16:51:54 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 1pX2Gf-0003zk-S1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Feb 2023 16:51:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX2Ft-0001Yl-BE; Tue, 28 Feb 2023 10:51:05 -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 1pX2Fr-0001YN-WF for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 10:51:04 -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 1pX2Fq-0005Ti-CW for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 10:51:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pX2Fq-0003z1-3c for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 10:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2023 15:51:02 +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.167759943715254 (code B ref 61748); Tue, 28 Feb 2023 15:51:02 +0000 Original-Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:50:37 +0000 Original-Received: from localhost ([127.0.0.1]:51803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2FR-0003xy-6I for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:50:37 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:52363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2FO-0003xg-R9 for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:50:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677599428; i=michael.albinus@gmx.de; bh=R4+Tuf/3Bn3GYGPIjKBatbdmZ6nFWFzs3f00mzA0fSI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=U/oJI+9CDui5htHWq+0BzOOGxiB56lxcbabBSb9d7L+iT/nKAYvro91TQtMWvs7J0 gzYi39losEcnCZ4tcfazTLVLOOyYnl7s6hCETy/xAPi8yFNL3C+d9qcY83tYHTwUi1 o1Ghh5YlweQ8KdMXqpV5DFk2C00vnAbd2Mi48soQpCoKqGqPeZqOXiFjWa3JFou0yi Ps2xJdJxdxiW/lfvz7ZfYF0qekZE590fMZgkaQI6/szAogGVXUWYKgpCbwYdlSzNk3 aqNHiHhFVu6M92GfFeMkW3nQ1wRziLwDRKgCo6lDSrDbBoPKJ3ObGwl+mnHeferpDV dIxxT0Lts8Lyw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mxm3K-1oYDrZ3uP8-00zDxB; Tue, 28 Feb 2023 16:50:28 +0100 In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Tue, 28 Feb 2023 15:23:24 +0000") X-Provags-ID: V03:K1:doMTRFP/rElBBQw6zxj2XFH6+B9+CXaWR6Fu0h4pbEJ2K6ZasOv gKEmGi4gX1W05rGpu/1jZRVD5QEQ0VVThU6StZrM7xC9rgGgWqRXWEsgojROq3iRF6B5BZ1 L0CcRO9aEF1qM9USdEd2FYV46KG9SmaSfV+WzN6JOdAAS1QnSexq22I0vWgmVnSu0jvIQXn 6u/Ue8CLDdKnW9L2zdakQ== UI-OutboundReport: notjunk:1;M01:P0:GwQTBBV2MUs=;znPUJMfNqt06XadLGYZoRU3d5xp s9rZ0w87voFjsL7NI6TQ1ag+HyzbskCOg1vh906BPaJnC5daOqOb5UW0hLHWC40xVTHlDdtCK +BZHOFy2/Bv+oxe2gt2jVgv3YiBk8exXx7iwAFg3dNZ/d758fyp3H/wGJH1qxVEAXd2KKNV/y NZxAN16jU2naYncMbBQAKIFBwzDJZA/CJUlEDkob2hLg24atHAqAhI1UQY788HQnFgVskFmNJ G7Gwjsgk9aTU4CILsgHL9jkkMWL6OxGCgHEa0emz6HDtcXcE1icD5/jDJhmAMm3P9nk2R6qXF KB1uCgbU+NR2LaWGiYwkYK4GkHFad3cE4ywT5TwW9PriOLmeH4vouTitPmGx45zdmTza1vy9z pYB7Aehv8CqD4Y153nLuoZ7JKsTSnrqTCGIJYv+vrtPuthZ2ueQRYgOZhQwxKenZBqNjFRpWg +Zaj5/lOjLtZ1kgyFF75KMgdoiCT0jNHxJQWj07H7V2NRhvdoNiFSR33SXFbKIFvpP8QK6VJs DGGnBcILdYnrEFgZRqkFX34ksL42rAhX1Ozy9OcKlvaJqJ4TSp41scTlImfCp9ZnLUxjnFaGs wXZTx381Q8wOQiPTdQSNH0SCUxBc0C8y1INzBKzxeQPAAL/fBWVQBRc/q2vyjne3tcHDVKwPz IOjfPcYft73GGaKp+rfjbliUq5wengQArLSLMxYt51jljwAQ4KObq50lx7jUwqK0hxHja833j Hd7GVgZbQhcM6PrID5+fksMI+kinpJtk4OdIu2+ji7rZKdjZMYvWQBcsNE0TRetj/Vnlk6dZ 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:256985 Archived-At: Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >> 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. Hmm. It will delay startup of remote processes, if tramp-remote-path doesn't change for different processes. Perhaps it is negligable, but at least for slow connections people will be hit by this. I'll play with it. Perhaps there is a smarter version of it, as you say. > 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)) Best regards, Michael.