From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.bugs Subject: bug#19636: [TRAMP] global minor mode hangs connection when accessing files in :lighter Date: Sun, 25 Jan 2015 22:47:25 +0100 Message-ID: References: <87d268jejx.fsf@gmx.de> <87h9vey7gl.fsf@gmx.de> <87fvaytvll.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422222552 25094 80.91.229.3 (25 Jan 2015 21:49:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2015 21:49:12 +0000 (UTC) Cc: 19636 <19636@debbugs.gnu.org> To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 22:49:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFV3P-0008Di-9y for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 22:49:11 +0100 Original-Received: from localhost ([::1]:39034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFV3O-0000BN-LX for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 16:49:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFV3K-0000BD-Tl for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 16:49:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFV3H-0007CF-73 for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 16:49:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFV3H-0007CB-40 for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 16:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YFV3G-0001S1-Jh for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 16:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philippe Vaucher Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jan 2015 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19636 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19636-submit@debbugs.gnu.org id=B19636.14222224865496 (code B ref 19636); Sun, 25 Jan 2015 21:49:02 +0000 Original-Received: (at 19636) by debbugs.gnu.org; 25 Jan 2015 21:48:06 +0000 Original-Received: from localhost ([127.0.0.1]:56308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFV2L-0001QZ-QM for submit@debbugs.gnu.org; Sun, 25 Jan 2015 16:48:06 -0500 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:52307) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFV2H-0001Pz-B5 for 19636@debbugs.gnu.org; Sun, 25 Jan 2015 16:48:01 -0500 Original-Received: by mail-ob0-f169.google.com with SMTP id va8so5151895obc.0 for <19636@debbugs.gnu.org>; Sun, 25 Jan 2015 13:47:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=DV0fFb8Z8YoZ4uhf38ezWPgouB1F4z5C4bpSf/OwLg8=; b=FatCKgQLWVDYl+SyD2nlI/cUosy084MHQkp76v8xDH+ZSuCAr2mrJfyq+juRcLZ45L tMJocDwh6WXswVb09CfiGz2jq0yS4JIu1cy3AA4/XVHKMaMHa09AXm3gNxyL3Rcj8MEj 7THIscoUWTwoZf2sYOgARS485OTF+GLtgryHQOmq1wQAWQ87qi9rzPFL5JplvmxoDc8k 4wbT+Nuj2Y3puJe9zwsE0GP/rcmcMAOGpjmkR+uluFR9F3LTWh+ZtpJv1I6TbhGBkFf7 ZKMeNLl/f/KIDNcyC5SIU53mMqWaG/boRa4HDXKMHNlfPbGe+XhXvlRlBee7EFJFHgEn DDhw== X-Received: by 10.60.103.116 with SMTP id fv20mr472840oeb.3.1422222475724; Sun, 25 Jan 2015 13:47:55 -0800 (PST) Original-Received: by 10.202.229.4 with HTTP; Sun, 25 Jan 2015 13:47:25 -0800 (PST) In-Reply-To: <87fvaytvll.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98730 Archived-At: > 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