From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61926: 29.0.60; [PATCH] Make tramp-remote-path behave like exec-path Date: Fri, 03 Mar 2023 09:23:58 +0200 Message-ID: <83jzzycn75.fsf@gnu.org> References: <87y1oe7kk9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16531"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de, 61926@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 Fri Mar 03 08:25:15 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 1pXzn0-00049L-Ub for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Mar 2023 08:25:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXzmq-0003He-RK; Fri, 03 Mar 2023 02:25:04 -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 1pXzmp-0003F7-6a for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:25:03 -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 1pXzmo-00065F-Sl for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXzmo-000226-4x for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Mar 2023 07:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61926 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61926-submit@debbugs.gnu.org id=B61926.16778282607752 (code B ref 61926); Fri, 03 Mar 2023 07:25:02 +0000 Original-Received: (at 61926) by debbugs.gnu.org; 3 Mar 2023 07:24:20 +0000 Original-Received: from localhost ([127.0.0.1]:59499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXzm8-00020x-EV for submit@debbugs.gnu.org; Fri, 03 Mar 2023 02:24:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXzm6-00020g-PT for 61926@debbugs.gnu.org; Fri, 03 Mar 2023 02:24:19 -0500 Original-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 ) 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==; Original-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 ) id 1pXzm0-00058Q-Tl; Fri, 03 Mar 2023 02:24:13 -0500 In-Reply-To: <87y1oe7kk9.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Fri, 03 Mar 2023 00:19:50 +0000) 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:257196 Archived-At: > Cc: michael.albinus@gmx.de > From: João Távora > 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?