From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov 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: Tue, 25 Oct 2016 02:41:31 +0300 Message-ID: <1ad97145-d21e-5d64-8b6c-4b4b2bc2ab49@yandex.ru> 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> <377f4ee1-54a9-b10c-dc18-3acea6492bec@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1477352563 5830 195.159.176.226 (24 Oct 2016 23:42:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2016 23:42:43 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0 To: Hong Xu , 23436@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 01:42:39 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 1byose-0006AS-7M for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2016 01:42:12 +0200 Original-Received: from localhost ([::1]:50790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byosg-0002n9-Ij for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2016 19:42:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byosX-0002ms-8u for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byosU-00036G-5e for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byosU-00036A-0Z for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1byosT-00053A-RJ for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2016 23:42:01 +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.147735250019374 (code B ref 23436); Mon, 24 Oct 2016 23:42:01 +0000 Original-Received: (at 23436) by debbugs.gnu.org; 24 Oct 2016 23:41:40 +0000 Original-Received: from localhost ([127.0.0.1]:55555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byos8-00052Q-AE for submit@debbugs.gnu.org; Mon, 24 Oct 2016 19:41:40 -0400 Original-Received: from mail-wm0-f46.google.com ([74.125.82.46]:34884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byos7-00052D-2i for 23436@debbugs.gnu.org; Mon, 24 Oct 2016 19:41:39 -0400 Original-Received: by mail-wm0-f46.google.com with SMTP id c78so131244781wme.0 for <23436@debbugs.gnu.org>; Mon, 24 Oct 2016 16:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=n7IdjK1t7RLZlnEKgjVsQjVUiCoz8qvqwGcrfG+sd4U=; b=oNLp6B/rhREXjAAlMlRLZEgOv1o01D5RMi04d9My/AZvkNuxGeeU7pdvPh53MPNhCy BYlzz3EIPvHdNzZqe94nlZEM3IDP4+GuyEjQP2Zz5C+x5Ohs/ZEqTdgOBmV99r+iMwzy Y/ootHdu2OvKmoKqR9/HyiqSwyNHXUTjJHfrPld58Z+8PJad1OK8/ZNOVl4mdraIKTV0 RQleiBG/jgCexswrE/Py6StEZ39cYqhYez7FwWBhdTL4j9xkxDGfhdrh2U8YC/JIO9XE U2qdR23/iaNabJ1UbYktJTq6KUdsMd1xuTZ9+WgePYbKc91u3RI2W7kbUG5fQQozW+sQ zCtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=n7IdjK1t7RLZlnEKgjVsQjVUiCoz8qvqwGcrfG+sd4U=; b=kT/AW6rZK+tb5DpjxHy0hm3J8J5Sla5x9ZvY8WaoaUQGCxXHXPKDGAVm4OzvmmxHH0 DyXwxtOlyHj63MDMUV2DkdzEXUKktv7xE1DMAHYdNE+8OwpvHKAvOQT4QkQJt8aDsmkn Lki5OzGLZExglXERedXemzYm5qKhh1wuDXU3+fEbdf3aOdEwmwVegUeodtDJu9ac438a J+w/ThOOYtLO80WoaZLT1majCmjaYxLsH/hUx/Zn1mk6+OA3nsejQaZp8EP+mqiNZxMQ KA7XBzeu3Rm8e8jDQWfLsBb7kvvgUW0h7hEbVnzWbhiPmjTpmW8HaGG6lGbyQ4BQzx/e /haw== X-Gm-Message-State: ABUngvfEvneAacooyXGqrQBG5cKkpsYRFZBiswVU+IqqV/09EORK1ehs2tyHra23VzxC1w== X-Received: by 10.194.148.7 with SMTP id to7mr13990364wjb.31.1477352493255; Mon, 24 Oct 2016 16:41:33 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id k74sm357124wmd.18.2016.10.24.16.41.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2016 16:41:32 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:124983 Archived-At: On 21.10.2016 02:04, Hong Xu wrote: > Sorry for the confusion. Either keeping what it was or adding a new > command [which essentially calls (vc-responsible-backend (vc-follow-link > file)) ] would be the best option regarding performance. Shouldn't the command call find-alternate-file instead? Then you can continue working with buffer-file-name and default-directory inside the symlink target directory. And if you visit any nearby files there, you won't have to call the vc-follow-link for each of them again? What are the downsides to this approach? > e need to > clarify that symlinks are not followed in vc-responsible-backend, and If > the first option is adopted, mention that vc-follow-link should be used > if link following is desired. OK, mention where?