GNU bug report logs - #61926
29.0.60; [PATCH] Make tramp-remote-path behave like exec-path

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: João Távora <joaotavora@HIDDEN>; dated Fri, 3 Mar 2023 00:19:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 61926 <at> debbugs.gnu.org:


Received: (at 61926) by debbugs.gnu.org; 12 Feb 2025 14:42:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 12 09:42:37 2025
Received: from localhost ([127.0.0.1]:33534 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiDwi-0004tm-NX
	for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 09:42:36 -0500
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:56702)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tiDwf-0004tW-SA
 for 61926 <at> debbugs.gnu.org; Wed, 12 Feb 2025 09:42:34 -0500
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-5de5bf41652so7416771a12.1
 for <61926 <at> debbugs.gnu.org>; Wed, 12 Feb 2025 06:42:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739371347; x=1739976147; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=ojB47+cMeV70QohaFIj/obJuEKBNHUgYEVevM90uJoU=;
 b=ADX5Jzu83TGY9qxFT2M+ttFei0akxXPSLLBFVgW3FANkn+vSyZYZpZKsqg2qIA1BjG
 X1T8AYFYtTRSOZ/r756dXO8OTSRQ/HZpBgOrXCriJ30J1eVFA1PQt+o9g3zxV4wi+2yf
 EghTGheVKCjeIMLmIqxjevaSkv2RfC8YzVoyv5N5SZuzjJmak8jhiWHBnmucid/UTVKG
 gvBjh/6rbsEW6LgO/pZrFJOGWG4Qs4HmcH6hInB+98IQ4jqzi/Y/TKtk9bZGHpQ8/piT
 9yhbepLh7u/QLbzfwJFasz6BHyfEz4kGQZswgsntlXM1xB2dSqlY3BgWrawumsdW+vJ2
 gMLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739371347; x=1739976147;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=ojB47+cMeV70QohaFIj/obJuEKBNHUgYEVevM90uJoU=;
 b=OTOCI+17eF0vMyOKPaR5dI0N3cngLLr22Zuhd66pNnnotI0nK15V3Tc5RLvOig48Ja
 N5BNcBiNP7/khE2eyyuy2JpS34FRtKWneV6FKTcyYAVI4jWivXHgPRlKj2aOMQNfWleM
 zD+MDRXzZ4NtvBfgMcL32u5SPlfQBGBV0Kn3hqadNMuuiRqTCYfZyxHAZlaIjzLRpKDj
 o5my41GUvXgQnWcqtEWjnZq7A9YAgO8Q5iZo1ekxZ7DgivHEzqsgyY5ktUXAJ4ik+uGo
 f/k5HKmNRmXwtam0DuzZSQDGXUkyIj4mH9ZHeQmAebxEoXR7DpEF+pTOcf074WYGt2nm
 wQug==
X-Forwarded-Encrypted: i=1;
 AJvYcCUrXEl0lxXb383Ji7CJgIlRkxXMNuZaH0bLDeU1MNhskiohg54TUGAzlwPMYvrwLp54jzE5ag==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzDKh4tIyt2iexdxuYIKvGw1ekdv6XG9sDg9qJwsRNPzabRR3AP
 XnXrMke9ngcZwDlmypuW1uhJQEyGJFPx39EU7C/C4nH4oj0njufbiNY23JirSqfHTv7lU0abWBX
 fOKtEXJemA4lBH2XHTtUyDhPeAGI=
X-Gm-Gg: ASbGnctc5FbActEV2OtfqMeisfc6ZQWbhVzt7p36szXLD51z6rk+hr17IGlHGMLS1Th
 3i8lyhFGIyG2XPR+4R4/0UZdfz0Ghf4YkMvBo3h2QmpDDP2UpGH05ZZk06iJiiMDdCGCn7mnjiO
 Y=
X-Google-Smtp-Source: AGHT+IF457btB5sDgbCDI+JekuB93l3Pq8fzg61CSPuol07biRX/Rdxx3RYCPvvttQgdOOqnDuJTtIoixCVBwNWsezM=
X-Received: by 2002:a05:6402:3549:b0:5dc:5a34:1296 with SMTP id
 4fb4d7f45d1cf-5deaddc112bmr2789065a12.16.1739371347351; Wed, 12 Feb 2025
 06:42:27 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 12 Feb 2025 06:42:27 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CALDnm52j09p=SkkJmzMQ3yWjUzaXAVdv+ubtA1O6mMwc_eNCdg@HIDDEN>
References: <87y1oe7kk9.fsf@HIDDEN> <83jzzycn75.fsf@HIDDEN>
 <CALDnm50=9JGa8LxVnxAVcj1wdiedehCNou=vY7OFyiPY79i3Hw@HIDDEN>
 <CADwFkm=mHLB7tp7naC9+qDb7_JTMsknKa8JKrBez7BEu-MSMnQ@HIDDEN>
 <CALDnm52j09p=SkkJmzMQ3yWjUzaXAVdv+ubtA1O6mMwc_eNCdg@HIDDEN>
MIME-Version: 1.0
Date: Wed, 12 Feb 2025 06:42:27 -0800
X-Gm-Features: AWEUYZke97RCFDnz5gHt3d9MxDMV-HgXkmVoh8z7GfQf2A9cYueuNZXfaBo7iuA
Message-ID: <CADwFkmkpcsqwnDYbjjJRgM5D0YDoGxiHpxcusykS_sS1R=rrKg@HIDDEN>
Subject: Re: bug#61926: 29.0.60;
 [PATCH] Make tramp-remote-path behave like exec-path
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61926
Cc: Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN, 61926 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> On Wed, Feb 12, 2025 at 4:38=E2=80=AFAM Stefan Kangas <stefankangas@gmail=
.com> wrote:
>>
>> What's the status here?  Did you make any progress with this?
>
> No.  If someone does and the patch touches Eglot please show
> it to me.

Michael, any comments here?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61926; Package emacs. Full text available.

Message received at 61926 <at> debbugs.gnu.org:


Received: (at 61926) by debbugs.gnu.org; 12 Feb 2025 08:27:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 12 03:27:11 2025
Received: from localhost ([127.0.0.1]:60731 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ti85O-0003zN-OO
	for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 03:27:10 -0500
Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]:45093)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1ti85N-0003yx-BG
 for 61926 <at> debbugs.gnu.org; Wed, 12 Feb 2025 03:27:09 -0500
Received: by mail-oa1-x2a.google.com with SMTP id
 586e51a60fabf-2b86e13e978so2029353fac.2
 for <61926 <at> debbugs.gnu.org>; Wed, 12 Feb 2025 00:27:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739348823; x=1739953623; darn=debbugs.gnu.org;
 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=UswPHHlct0Jrg9QFpn3fs0r5qmd3wmiLhllVo3RopTM=;
 b=hw2UwHK20wrYVEGoi9CKOlieCReQWmq3jzqUEKrjAO7DISex9VBk7utfjCkXVzAdis
 aZWwjut/0l4MgHUEK3aylHF1s5Qh8MwrPoEYxBSGLfGshloICedYS3bAlX/qexbsgnb+
 pbs/Qds8SGpU9ijFnt7hN6lGJ+/gkKkdt1s5gEQEL90prDh78/5ACeQuzoLVllg+977a
 zXZapfQFxTHJAXlyM1RD0seO2lE0mzy5379KmiQ57wpMF6nEXkAWQu2RI1MAVf6/DhdW
 RuMPeZC9DVsOlRFhPdnhdK5h0sur4N0vYpuhXfWJK8RpQ2nFFidaEhSp7yLNKNnefh9N
 s4sw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739348823; x=1739953623;
 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=UswPHHlct0Jrg9QFpn3fs0r5qmd3wmiLhllVo3RopTM=;
 b=WNPLkQyQ3W1UOdg2MbY6kDiMcfMZL/6KylV/cBRgN2gQILRqK2Rx1QmQ+U1JMqLQhp
 zScyvO2zNNHrkPAT3ejcl0MtYmaAaOT4J4FBcmfrHFi+TLGpTuOa9DX4ItPccnmOeLCz
 RGdg4j6MpwLlY4c9Iq1gynVWnivhNiCTgVFXXlMq92e7ENBJ9D0HJTYkwapFM+p9qA3l
 mUmMANH1b6YqML+FYGgQo6CPdH2x1CHihZnpLOIcLFEcj/onz9iPzbIZj36qXyCOi7hG
 YA0ymegwFOCgsYI2EKTbV9KklnKN3gaIagkE2y3qBC0VcZjtM03XypDDovg1O10wU0e8
 1PBg==
X-Forwarded-Encrypted: i=1;
 AJvYcCU6DUonjE3PmovzjCK2pFxEFlU+/B76PsqS64bVK6ukDp0Gf1ZYF2rYnZkT1eG6n7V5suRnng==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxpQz+0Inff3TEOY7kbClR7rYQCW/w/v6gOaaDt3/xk7CJWuqag
 kgroYK/HIWj3uOfacDr0OmXmOCph7x4uGoW1AfATS1HlfqBnMFcd4RvV9wsmKcTlhBjQrUe6/5R
 SryrXTNG+YGV6FLkyS7lT/QpvmJs=
X-Gm-Gg: ASbGncvCJYI2YavkkbnMt006lelDsgkWiurWiXAKlF5rEzLqwik5bua1+3AztqOyhEn
 +4VeNI4MirhWGP7XJvlvOP5VTVfEWzQ3YNer0yNx04+aGO+t9WHH54rCWvtmrmygilVDQYic=
X-Google-Smtp-Source: AGHT+IFg15Ml9MBYcbR1pZXHVg7yotv0bO0S4KhuQ6upFV+c3p9zby9k+iOFpjQx7z5NRoM3+BPgEcdCBKde2Flt7zY=
X-Received: by 2002:a05:6871:62c4:b0:2b8:132d:650 with SMTP id
 586e51a60fabf-2b8dacfd09emr1034483fac.10.1739348823263; Wed, 12 Feb 2025
 00:27:03 -0800 (PST)
MIME-Version: 1.0
References: <87y1oe7kk9.fsf@HIDDEN> <83jzzycn75.fsf@HIDDEN>
 <CALDnm50=9JGa8LxVnxAVcj1wdiedehCNou=vY7OFyiPY79i3Hw@HIDDEN>
 <CADwFkm=mHLB7tp7naC9+qDb7_JTMsknKa8JKrBez7BEu-MSMnQ@HIDDEN>
In-Reply-To: <CADwFkm=mHLB7tp7naC9+qDb7_JTMsknKa8JKrBez7BEu-MSMnQ@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Wed, 12 Feb 2025 08:27:04 +0000
X-Gm-Features: AWEUYZng0XIPJdQNbcLVsZae0RMyOaTyRLYbYzE4tGoaL3Ydi0d2NAo6_PfbNKQ
Message-ID: <CALDnm52j09p=SkkJmzMQ3yWjUzaXAVdv+ubtA1O6mMwc_eNCdg@HIDDEN>
Subject: Re: bug#61926: 29.0.60;
 [PATCH] Make tramp-remote-path behave like exec-path
To: Stefan Kangas <stefankangas@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61926
Cc: Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN, 61926 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Wed, Feb 12, 2025 at 4:38=E2=80=AFAM Stefan Kangas <stefankangas@HIDDEN=
om> wrote:
>
> What's the status here?  Did you make any progress with this?

No.  If someone does and the patch touches Eglot please show
it to me.

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61926; Package emacs. Full text available.
Removed tag(s) patch. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 61926 <at> debbugs.gnu.org:


Received: (at 61926) by debbugs.gnu.org; 12 Feb 2025 04:38:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 23:38:17 2025
Received: from localhost ([127.0.0.1]:60215 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ti4Vt-0005kW-IK
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 23:38:17 -0500
Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:43478)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1ti4Vr-0005kD-AB
 for 61926 <at> debbugs.gnu.org; Tue, 11 Feb 2025 23:38:15 -0500
Received: by mail-ed1-x536.google.com with SMTP id
 4fb4d7f45d1cf-5de6069ceb5so712656a12.1
 for <61926 <at> debbugs.gnu.org>; Tue, 11 Feb 2025 20:38:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739335089; x=1739939889; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=i2jMjRG/bAEpBfr7os60KtE4ntTjavNElaI7EKx/CAs=;
 b=bpdZog3wScmFEQt0Hxj9QJV7NvWEQ4PDomJIl4lEbTVw4GJUVqVrNayr1ncz/wdH9w
 YIZfWv0ug6mMuciQf+G/0ipMWuQ7YZC9SUwF6Dt/eG7z0tZFEk/c50RXUjJXjKVOLLZ2
 pOZ6c4LYmXwtHy4vI3sb5moLttDZbKLdMTcsGndOaJmHhrNKgmIrB9+pX5Az0TrxHPfH
 6RCeV23Fz1xNzryXyIhTp3PNqb6e27M6mo53SD+pQe2hysCGwkh1qxRXgQRgM9uLPufj
 s+fBXWdeCo2jmo9ZYBTPWe/jhXrOAazAJ8cHyNERI5pqSbZPCvMrvRQSl9ten2E8JAJw
 nIpA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739335089; x=1739939889;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=i2jMjRG/bAEpBfr7os60KtE4ntTjavNElaI7EKx/CAs=;
 b=anAuhdROQs7hiUxTv5Fgg5uiabJRqfExxMQqG4FFcqV/MjKqpPa1acgLAX23ZJY//m
 kBhAMyKVjSnRdxsNiN1uyzQlkk/MIPF+Up52zPHJ5sn4U+pBSBJrjhgU3FQuXngFn/o/
 lZz68zENIPOyxjq9vxoKvcklQg5z8PI5VHI4WKSPXx3HkpfQ2Bo667PFwDTnXpiPqHhw
 zytunVObwjV51ZmsWJFKq1/3nzydbcdG7OsKmr8j0/PGzfG393QQ3OeCYKVEwFctiV65
 1CjYnAaz6TeYbRKMGm/4acvhFk3jXImOCsq7tF501WXqzsmQUUU66+OOlShxz+ITf8Ax
 k2uw==
X-Forwarded-Encrypted: i=1;
 AJvYcCUjYDVte910i65LpEawNzi5EFCiN3HWWgGE0R18TnSgy8sIqpKhhNX2mR2908m5XMOuJQi4Hg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzXNNj0A/PR71LJAVwRcu0aPApfvlM89/9oBolbozvRgxswGkVo
 bwiUGFqHBp0xIMpKyUM+BYEDfybGTVWWOWKv6UReIrAhBw76+r5gpshh96C0pclIuSEM1R8qU5V
 X40xgsxR4/Nytr5BZ1VAmCZ5uJKs=
X-Gm-Gg: ASbGncu0huwkrwC3/IPlyZLZZCcx4Sv1nW965oDZz0ArkD6VhXenIg7pApdWXaIpXQw
 ioAnskJZ5UP07RjMwJDQ28V/h7+28rx4mD04nqC7Uwue2/agoXfvC6aZ+S51/DPHkVvzvHPMs4Q
 ==
X-Google-Smtp-Source: AGHT+IGhmLKhSvHnGBXNR/Yv6uKIFZIID9p4gHQbiyw+8x0Bek5QCMyLwIeYh0beAuvRk87jfR5eUWTc1hzEfgo/xKM=
X-Received: by 2002:a05:6402:34d1:b0:5de:a972:8c7 with SMTP id
 4fb4d7f45d1cf-5deae09ac04mr1202489a12.5.1739335089195; Tue, 11 Feb 2025
 20:38:09 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 11 Feb 2025 20:38:08 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CALDnm50=9JGa8LxVnxAVcj1wdiedehCNou=vY7OFyiPY79i3Hw@HIDDEN>
References: <87y1oe7kk9.fsf@HIDDEN> <83jzzycn75.fsf@HIDDEN>
 <CALDnm50=9JGa8LxVnxAVcj1wdiedehCNou=vY7OFyiPY79i3Hw@HIDDEN>
MIME-Version: 1.0
Date: Tue, 11 Feb 2025 20:38:08 -0800
X-Gm-Features: AWEUYZnw1-5TpWkAnViNs4AKLQoyZ_7VO-5z8_5GO0ytqZON-tf08VzKAhkSbZQ
Message-ID: <CADwFkm=mHLB7tp7naC9+qDb7_JTMsknKa8JKrBez7BEu-MSMnQ@HIDDEN>
Subject: Re: bug#61926: 29.0.60;
 [PATCH] Make tramp-remote-path behave like exec-path
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61926
Cc: Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN, 61926 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> On Fri, Mar 3, 2023 at 7:24=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote=
:
>
>> We nowadays have variable-watching feature in Emacs, see
>> add-variable-watcher.  Could that facility be used in this case to
>> allow a more elegant solution?
>
> Yes, good idea.  But only if we have access to the cache
> locations that we have to flush. These would be the "remote-path"
> properties of every Tramp connection, and I _think_ there's
> an accessor for that, but I have to check.
>
> Which reminds me, that patch I sent has a big thinko :-)
>
> If you re-set tramp-remote-path you get flushing for the
> next call to tramp-get-remote-path, which will be for a given
> connection.  At that moment you forget changes by setting
> tramp-last-used-remote-path so and you will fail to flush for
> the next connection.
>
> Not hard to fix, we just have to make sure to flush _all_
> connections when we detect the change, however we detect it.

What's the status here?  Did you make any progress with this?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61926; Package emacs. Full text available.

Message received at 61926 <at> debbugs.gnu.org:


Received: (at 61926) by debbugs.gnu.org; 3 Mar 2023 16:20:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 03 11:20:48 2023
Received: from localhost ([127.0.0.1]:33779 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pY89I-0004sQ-L8
	for submit <at> debbugs.gnu.org; Fri, 03 Mar 2023 11:20:48 -0500
Received: from mail-ot1-f52.google.com ([209.85.210.52]:42876)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1pY89G-0004sE-NF
 for 61926 <at> debbugs.gnu.org; Fri, 03 Mar 2023 11:20:47 -0500
Received: by mail-ot1-f52.google.com with SMTP id
 g6-20020a056830308600b0068d4b30536aso1701685ots.9
 for <61926 <at> debbugs.gnu.org>; Fri, 03 Mar 2023 08:20:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1677860441;
 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=YH9SuhqrHDerwdysa2Un7twUiQriA7AYo0pX5QyK3so=;
 b=XvazmyK21k9T661RQ7gKDAIwfxFi4X27jCQJOcIo6Dfcatuu4Bh3fyahtMX1Id5/7O
 1R/7CKYOlOOIXhacT+kz+Em53LsaVsF0DYdTOQHD5LXM3Vchf26dBL3dFpiwUM+0/rOH
 0aZnY0qQzDPpX2ID3XFq7iHUbOOf7OWfEXjhN8XH8ZFxDEe7KD6pPJTnln2tJEEKhruP
 5bDUjmzBWjLvM5X0/QC8MHGMkFS3+14lUM0zjEig60UrYLISNEO+uN0wY4owCziHuUVy
 xKX+hWCIUBp1dSRP/6AzElmaEAWkbLFAP3IJyPtenzuPUplw1m7KPQQRzAemkkuOmN8H
 hHLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1677860441;
 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=YH9SuhqrHDerwdysa2Un7twUiQriA7AYo0pX5QyK3so=;
 b=yGo7F+oNb3LhO0oRxBfGp6sEIyBLwnQQfmOpsvhnkZyou7LqmZn+lb80QcC1g3AEp6
 Ri5+IbTqiDVMrlCwPHJyzbLREVIi7awo3Y0Byf0cniC8TvzNqzlQXqky5v3e7bMP2DpG
 5+p9Hlnbk0wtIUyQeFYO/aUmfp5dk3txQo9t9F+CIcu+NH2soGd6Si1NA5F54fcRyqL9
 vU+2PNX5jA1KH0YSP0Vh2NJtjM8m7RU2s7PpInSkfCS+sv++IREyLEvZS8C8X8L0q14G
 QgacmROkmAw0bB9ilqnns11h9n4cIxvgto7vPiF401h0dqIFAwy1nAFCZujThigsWeja
 uLlg==
X-Gm-Message-State: AO0yUKV0swI2gu+kWtKdF0YNWDqEZA29XtWj2bMeb/uJt9nWPnf1d1/n
 LYXqkHA2Rnj8XxOlWFT+nnyZZRxyw7QumkjgdDE=
X-Google-Smtp-Source: AK7set98z47NryHVyYUx7MbhVmN7wSZdXZHyd8q2Dug8pGrLYfWRcJEtanMlVpNF5BaZfdliJPLF10kl9D23IsqNZLI=
X-Received: by 2002:a05:6830:2464:b0:688:cfcc:ddaf with SMTP id
 x36-20020a056830246400b00688cfccddafmr605686otr.3.1677860440813; Fri, 03 Mar
 2023 08:20:40 -0800 (PST)
MIME-Version: 1.0
References: <87y1oe7kk9.fsf@HIDDEN> <83jzzycn75.fsf@HIDDEN>
In-Reply-To: <83jzzycn75.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Fri, 3 Mar 2023 16:20:29 +0000
Message-ID: <CALDnm50=9JGa8LxVnxAVcj1wdiedehCNou=vY7OFyiPY79i3Hw@HIDDEN>
Subject: Re: bug#61926: 29.0.60;
 [PATCH] Make tramp-remote-path behave like exec-path
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61926
Cc: michael.albinus@HIDDEN, 61926 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, Mar 3, 2023 at 7:24=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:

> We nowadays have variable-watching feature in Emacs, see
> add-variable-watcher.  Could that facility be used in this case to
> allow a more elegant solution?

Yes, good idea.  But only if we have access to the cache
locations that we have to flush. These would be the "remote-path"
properties of every Tramp connection, and I _think_ there's
an accessor for that, but I have to check.

Which reminds me, that patch I sent has a big thinko :-)

If you re-set tramp-remote-path you get flushing for the
next call to tramp-get-remote-path, which will be for a given
connection.  At that moment you forget changes by setting
tramp-last-used-remote-path so and you will fail to flush for
the next connection.

Not hard to fix, we just have to make sure to flush _all_
connections when we detect the change, however we detect it.

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61926; Package emacs. Full text available.

Message received at 61926 <at> debbugs.gnu.org:


Received: (at 61926) by debbugs.gnu.org; 3 Mar 2023 07:24:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 03 02:24:20 2023
Received: from localhost ([127.0.0.1]:59499 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pXzm8-00020x-EV
	for submit <at> debbugs.gnu.org; Fri, 03 Mar 2023 02:24:20 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54920)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pXzm6-00020g-PT
 for 61926 <at> debbugs.gnu.org; Fri, 03 Mar 2023 02:24:19 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pXzm1-0005zc-IT; Fri, 03 Mar 2023 02:24:13 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=VHeMRKfB99BjlWSZiokDtNMf+n7hXUdHZIykaISCYfg=; b=nqEz4bHTP3PgnIANQeQc
 tzSjP861ErqsayQES5kd0jh4B2EZnpZSD9i2lm4L5yplfZpM0pm6yJlEXFsQCVMic17kZPgSds5YQ
 qPle1Wgw78DXvOcoPY5/gkWu4eQXMxY38VReTzrOI2XY4aHC4VbePAa3a53KPrioZL1g6QP6Ek8C+
 ngEwac0WLl27c24rYo4BntgQzhfSpFgvAfYM35fopV8yyGyOXAQKLu9JHLoc2S+OFFwT/dyXLIyC3
 BdL7SW+GuhcAD797xlE0pUR3xzcVQJObeTcrOI5xa2NkWg8ZbpASJ0v7aAGurXpS87ozfgU0jDr2/
 rv+ZMp8163AD9A==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pXzm0-00058Q-Tl; Fri, 03 Mar 2023 02:24:13 -0500
Date: Fri, 03 Mar 2023 09:23:58 +0200
Message-Id: <83jzzycn75.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
In-Reply-To: <87y1oe7kk9.fsf@HIDDEN> (message from =?utf-8?B?Sm/Do28g?=
 =?utf-8?B?VMOhdm9yYQ==?= on Fri, 03 Mar 2023 00:19:50 +0000)
Subject: Re: bug#61926: 29.0.60;
 [PATCH] Make tramp-remote-path behave like exec-path
References: <87y1oe7kk9.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61926
Cc: michael.albinus@HIDDEN, 61926 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: michael.albinus@HIDDEN
> From: João Távora <joaotavora@HIDDEN>
> Date: Fri, 03 Mar 2023 00:19:50 +0000
> 
> Very few Emacs variables, if any, require a separate command (here M-x
> tramp-cleanup-all-connections) to be issued after the variables value is
> set.  This variable needn't belong to that group.  
> 
> There is a discussion about this caching somewhat deep in the Tramp
> manual.  But I think it would be much nicer if simple things like this
> worked out of the box, allowing users to experiment with value for
> `tramp-remote-path' via M-: (setq ... ) or some other variable-setting
> method, until they get it right.
> 
> Changing this variable's value doesn't alter the remote value of the
> PATH environment variable, much like changing exec-path locally doesn't
> change the local PATH environment variable.

We nowadays have variable-watching feature in Emacs, see
add-variable-watcher.  Could that facility be used in this case to
allow a more elegant solution?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61926; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2023 00:18:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 02 19:18:03 2023
Received: from localhost ([127.0.0.1]:59250 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pXt7a-0007Ri-Ov
	for submit <at> debbugs.gnu.org; Thu, 02 Mar 2023 19:18:03 -0500
Received: from lists.gnu.org ([209.51.188.17]:33594)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1pXt7Z-0007RU-RI
 for submit <at> debbugs.gnu.org; Thu, 02 Mar 2023 19:18:02 -0500
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 <joaotavora@HIDDEN>)
 id 1pXt7Z-0007VV-D2
 for bug-gnu-emacs@HIDDEN; Thu, 02 Mar 2023 19:18:01 -0500
Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <joaotavora@HIDDEN>)
 id 1pXt7X-00069q-Eq
 for bug-gnu-emacs@HIDDEN; Thu, 02 Mar 2023 19:18:01 -0500
Received: by mail-wm1-x330.google.com with SMTP id p26so654885wmc.4
 for <bug-gnu-emacs@HIDDEN>; Thu, 02 Mar 2023 16:17:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1677802677;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=9tLDlHDahGAln+923qmH9CUfspf2zYQ1gbu6QKbeoAM=;
 b=jE+pRLn+D8UhNa7Ar7TjL8JUy0vc1uW/XW7F/LKWSGKBzzgDSPxQoP/9IOfBG7tNzb
 +Aw9PJ+dG8mJPv8Bbp4yajAdA1GKHZInRxMjM+nN3O5Deu3ocjKItXVnfTApcRG5euNR
 RBc3Zresu3RSqHVP0cqZKn0LuuD46IYwyI801cj18dvn4ij4dADjSTk1LFZHCustulHh
 5dafNEzARL/QVYRhpe2ZjE9Yl8KMMYDDHQSkOcdx0PXA5p6Cw+dS76Ksm/cB8SYv3kOw
 qo/sN7s4F0jocscYgy+IVwSPYy1sGTwcwkUCnFsZytI3RvFp3vmuDrqoXvlCw3IFyC4J
 HWUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1677802677;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=9tLDlHDahGAln+923qmH9CUfspf2zYQ1gbu6QKbeoAM=;
 b=bjKurDvDiL4lftOx07oKGYbh30z07G9r73VJMJy9PfPU45CD8fYbR0t8cMvoRXXMHW
 U/C7TJt52wKFdhLzF4JPrbgaPYiaHiCUoHmfHdnoj/kXY4zB14mVqWUH3ocrlCbCAPke
 f05eSVAbyCx+meZfJiadPsmgfDuxasTeIEI2RILVdFnyQXyLbE9LvBUKC8JKwBwo3Pkl
 w8SNQHtZVCD29tXQUCf/Qkw+LKIa6hy86YHjnsP7ggojBRQ1Cz2cUPbHgSPyIIp9g3hk
 YxL1bggUMKpWSh7wLRiSptiDrTx261qUBdzRHMHVDPvnAvmR3WNJfivjMXDA+l8Nsicg
 W2Aw==
X-Gm-Message-State: AO0yUKXUA+O1giQq61u+xAfhnB9WrxSfmpi/fn7Hz1JAihot0WVtRd6k
 0uCHXgpPvXwOE9VlG5YsQ5pMKXxqKF4=
X-Google-Smtp-Source: AK7set92eiq5PadD6pYxas3t0nBR88nXagO0LV+RhbT73I1bjye47OdQ/ZnVtgo4+asTgo/bJlwAYw==
X-Received: by 2002:a05:600c:329c:b0:3eb:3912:5ae9 with SMTP id
 t28-20020a05600c329c00b003eb39125ae9mr8477054wmp.24.1677802677005; 
 Thu, 02 Mar 2023 16:17:57 -0800 (PST)
Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142])
 by smtp.gmail.com with ESMTPSA id
 r8-20020a5d4e48000000b002c5d3f0f737sm654057wrt.30.2023.03.02.16.17.56
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 02 Mar 2023 16:17:56 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.0.60; [PATCH] Make tramp-remote-path behave like exec-path
X-Debbugs-CC: michael.albinus@HIDDEN
Date: Fri, 03 Mar 2023 00:19:50 +0000
Message-ID: <87y1oe7kk9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::330;
 envelope-from=joaotavora@HIDDEN; helo=mail-wm1-x330.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-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi maintainers, Michael,

This started in bug#61748.  There we discovered that while something
like this works and will correctly find '/home/user/bin/myscript'

    ~/Source/Emacs/emacs/src/emacs -Q --batch                \
    -l tramp                                                 \
    --eval '(add-to-list (quote tramp-remote-path) "~/bin")' \
    $REMOTE_FILE                                             \
    --eval '(message "%s" (executable-find "myscript" t))'

This subtly different incantation will _not_ work:

    ~/Source/Emacs/emacs/src/emacs -Q --batch                \
    -l tramp                                                 \
    $REMOTE_FILE                                             \
    --eval '(add-to-list (quote tramp-remote-path) "~/bin")' \
    --eval '(message "%s" (executable-find "myscript" t))'

This is because of a caching behaviour in tramp-get-remote-path.

The patch after my sig solves the problem: the above two incantations
produce the same value.  It will prevent confusion among users (as I
was) about the what seemed like unstable behaviour from executble-find
and program invocation.

Very few Emacs variables, if any, require a separate command (here M-x
tramp-cleanup-all-connections) to be issued after the variables value is
set.  This variable needn't belong to that group.=20=20

There is a discussion about this caching somewhat deep in the Tramp
manual.  But I think it would be much nicer if simple things like this
worked out of the box, allowing users to experiment with value for
`tramp-remote-path' via M-: (setq ... ) or some other variable-setting
method, until they get it right.

Changing this variable's value doesn't alter the remote value of the
PATH environment variable, much like changing exec-path locally doesn't
change the local PATH environment variable.

Jo=C3=A3o

commit c9d577b9ede6192af6db47442ab9709127e39fb2
Author: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
Date:   Wed Mar 1 11:03:23 2023 +0000

    Tramp: flush configuration if tramp-remote-path changed
=20=20=20=20
    * lisp/net/tramp-sh.el (tramp-last-used-remote-path): New variable.
    (tramp-get-remote-path): Use it to decide to flush.

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index ec8437176db..29d2dda6829 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -5571,10 +5571,18 @@ tramp-check-remote-uname
   "Check whether REGEXP matches the connection property \"uname\"."
   (string-match-p regexp (tramp-get-connection-property vec "uname" "")))
=20
+(defvar tramp-last-used-remote-path nil)
+
 (defun tramp-get-remote-path (vec)
   "Compile list of remote directories for PATH.
 Nonexistent directories are removed from spec."
   (with-current-buffer (tramp-get-connection-buffer vec)
+    (when (not (equal tramp-last-used-remote-path tramp-remote-path))
+      ;; If user has tweaked `tramp-remote-path', flush any caches
+      ;; bug#61748.
+      (dolist (v (list vec (tramp-get-process vec)))
+        (tramp-flush-connection-property v "remote-path")))
+    (setq tramp-last-used-remote-path tramp-remote-path)
     ;; Expand connection-local variables.
     (tramp-set-connection-local-variables vec)
     (with-tramp-connection-property




Acknowledgement sent to João Távora <joaotavora@HIDDEN>:
New bug report received and forwarded. Copy sent to michael.albinus@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to michael.albinus@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#61926; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 12 Feb 2025 14:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.