From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23436: [PATCH] Attemp to use the true name of a file to determine responsible vc if the genuine name does not work. Date: Thu, 20 Oct 2016 13:58:55 +0300 Message-ID: <83lgxjthg0.fsf@gnu.org> References: <1462311145-5959-1-git-send-email-hong@topbug.net> <85f11f8a-1799-befd-3e5b-f7d7a6eac660@topbug.net> <072a649f-d11a-7c82-b3ae-32d9a92c8f8b@topbug.net> <5d653522-49bd-8b48-e3d6-0c09d1c65fae@yandex.ru> <837f93v75m.fsf@gnu.org> <83pomvtomv.fsf@gnu.org> <83mvhztk1g.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1476961242 25712 195.159.176.226 (20 Oct 2016 11:00:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2016 11:00:42 +0000 (UTC) Cc: 23436@debbugs.gnu.org, dgutov@yandex.ru To: schwab@suse.de, hong@topbug.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 13:00:33 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxB5B-00040r-PO for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2016 13:00:21 +0200 Original-Received: from localhost ([::1]:53871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxB5D-0007GO-Pj for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2016 07:00:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxB4y-00077V-9x for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 07:00:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxB4s-0004em-PU for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 07:00:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bxB4s-0004eM-MD for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 07:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bxB4s-0005ze-DP for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 07:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2016 11:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23436 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 23436-submit@debbugs.gnu.org id=B23436.147696116122947 (code B ref 23436); Thu, 20 Oct 2016 11:00:02 +0000 Original-Received: (at 23436) by debbugs.gnu.org; 20 Oct 2016 10:59:21 +0000 Original-Received: from localhost ([127.0.0.1]:40384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxB4D-0005y3-C0 for submit@debbugs.gnu.org; Thu, 20 Oct 2016 06:59:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxB4C-0005xl-Da for 23436@debbugs.gnu.org; Thu, 20 Oct 2016 06:59:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxB46-0003wB-DS for 23436@debbugs.gnu.org; Thu, 20 Oct 2016 06:59:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxB40-0003uW-Ak; Thu, 20 Oct 2016 06:59:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4776 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bxB3z-0000Um-BA; Thu, 20 Oct 2016 06:59:07 -0400 In-reply-to: <83mvhztk1g.fsf@gnu.org> (message from Eli Zaretskii on Thu, 20 Oct 2016 13:02:51 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:124730 Archived-At: > Date: Thu, 20 Oct 2016 13:02:51 +0300 > From: Eli Zaretskii > Cc: hong@topbug.net, 23436@debbugs.gnu.org, dgutov@yandex.ru > > > > What bothers me is that the use case where there really is no backend > > > will now take twice as much time as it did before. > > > > Perhaps only do that if the file is a symlink? > > Something like that, yes. Wouldn't a hard link also be a candidate? > Are there any others? Actually, I think the symlink case is the only one we should care about, as long as we use file-truename. So yes, doing the second test only for symlink sounds like the way to avoid doubling the search time. Thanks.