From: Philippe Vaucher <philippe.vaucher@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 19636 <19636@debbugs.gnu.org>
Subject: bug#19636: [TRAMP] global minor mode hangs connection when accessing files in :lighter
Date: Sun, 25 Jan 2015 22:47:25 +0100 [thread overview]
Message-ID: <CAGK7Mr4tVEYtWsUT_RptVZHKojYCOCW4fVQ876XzmnRpmisTmw@mail.gmail.com> (raw)
In-Reply-To: <87fvaytvll.fsf@gmx.de>
> Out of the Tramp problem, do you know `locate-dominating-file'? It's
> designed for that purpose; see for example how it is used in `vc-find-root'.
Yes, actually they implement their own version, see
https://github.com/bbatsov/projectile/blob/master/projectile.el#L583
The issue that I'm trying to solve is
https://github.com/bbatsov/projectile/issues/523
There's many problems with the current implementation, namely that
they call `file-truename' way too much.
I'll follow your suggestion and take a look at `vc-find-root', maybe I
can propose a rewrite that is much simpler and TRAMP friendly.
> In the current Tramp design, there can be only up to 2 parallel
> connections. The primary one is always used for all file operations, and
> the second one is used exclusively for `start-file-process'. So we must
> teach `file-truename' and friends to use only the primary connection,
> and not the one which is just active.
Okay, good to know.
>> - Fix TRAMP so it better handles multiple connections, but it's likely
>> to involve quite some work. Maybe a simple idea would be that calls to
>> `file-truename` always use the most recent connection? I'm not sure I
>> make sense so feel free to ignore it :)
>
> I will think about. Not sure, whether there will be results very soon.
No worries. Understanding the problem helps a lot already, now I know
what can/should be done when we refactor this package.
Thanks,
Philippe
next prev parent reply other threads:[~2015-01-25 21:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 17:49 bug#19636: [TRAMP] global minor mode hangs connection when accessing files in :lighter Philippe Vaucher
2015-01-21 16:15 ` Michael Albinus
2015-01-21 17:40 ` Philippe Vaucher
2015-01-22 11:07 ` Philippe Vaucher
2015-01-25 19:40 ` Michael Albinus
2015-01-25 20:15 ` Philippe Vaucher
2015-01-25 21:10 ` Michael Albinus
2015-01-25 21:47 ` Philippe Vaucher [this message]
2017-03-25 20:43 ` Philippe Vaucher
2017-03-27 13:36 ` Michael Albinus
2017-03-27 15:46 ` Philippe Vaucher
2017-07-14 13:12 ` Michael Albinus
2017-07-21 12:56 ` Philippe Vaucher
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=CAGK7Mr4tVEYtWsUT_RptVZHKojYCOCW4fVQ876XzmnRpmisTmw@mail.gmail.com \
--to=philippe.vaucher@gmail.com \
--cc=19636@debbugs.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.