From: "João Távora" <joaotavora@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: michael.albinus@gmx.de, 61926@debbugs.gnu.org
Subject: bug#61926: 29.0.60; [PATCH] Make tramp-remote-path behave like exec-path
Date: Fri, 3 Mar 2023 16:20:29 +0000 [thread overview]
Message-ID: <CALDnm50=9JGa8LxVnxAVcj1wdiedehCNou=vY7OFyiPY79i3Hw@mail.gmail.com> (raw)
In-Reply-To: <83jzzycn75.fsf@gnu.org>
On Fri, Mar 3, 2023 at 7:24 AM Eli Zaretskii <eliz@gnu.org> 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ão
prev parent reply other threads:[~2023-03-03 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 0:19 bug#61926: 29.0.60; [PATCH] Make tramp-remote-path behave like exec-path João Távora
2023-03-03 7:23 ` Eli Zaretskii
2023-03-03 16:20 ` João Távora [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALDnm50=9JGa8LxVnxAVcj1wdiedehCNou=vY7OFyiPY79i3Hw@mail.gmail.com' \
--to=joaotavora@gmail.com \
--cc=61926@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.