From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hong Xu 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 12:05:49 -0700 Message-ID: <87zilss0z6.fsf@topbug.net> 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> <1ad97145-d21e-5d64-8b6c-4b4b2bc2ab49@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1477423395 19517 195.159.176.226 (25 Oct 2016 19:23:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2016 19:23:15 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 25.1.50.5 Cc: 23436@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 21:23:11 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 1bz7JJ-0002v7-Lx for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2016 21:22:57 +0200 Original-Received: from localhost ([::1]:57707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz7JL-00051D-Je for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2016 15:22:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz73x-00009J-IZ for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2016 15:07:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz73u-0000FA-EZ for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2016 15:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bz73u-0000F6-Aj for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2016 15:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bz73t-00079t-VR for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2016 15:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2016 19:07: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.147742236327451 (code B ref 23436); Tue, 25 Oct 2016 19:07:01 +0000 Original-Received: (at 23436) by debbugs.gnu.org; 25 Oct 2016 19:06:03 +0000 Original-Received: from localhost ([127.0.0.1]:56712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bz72w-00078g-Uh for submit@debbugs.gnu.org; Tue, 25 Oct 2016 15:06:03 -0400 Original-Received: from sender163-mail.zoho.com ([74.201.84.163]:21350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bz72v-00078E-C2 for 23436@debbugs.gnu.org; Tue, 25 Oct 2016 15:06:01 -0400 Original-Received: from localhost (cpe-104-32-170-214.socal.res.rr.com [104.32.170.214]) by mx.zohomail.com with SMTPS id 1477422353772339.5827330561558; Tue, 25 Oct 2016 12:05:53 -0700 (PDT) In-reply-to: <1ad97145-d21e-5d64-8b6c-4b4b2bc2ab49@yandex.ru> X-Zoho-Virus-Status: 1 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:125013 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, Oct 24 2016, Dmitry Gutov wrote: > 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=20 > continue working with buffer-file-name and default-directory inside the=20 > symlink target directory. And if you visit any nearby files there, you=20 > won't have to call the vc-follow-link for each of them again? > > What are the downsides to this approach? I don't understand why find-alternate-file should be used. The reason we used (vc-follow-link) is to pass the correct file path to vc-responsible-backend. I don't see how find-alternate-file can be used her= e. > >> 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? In the doc string. Maybe we should also mention `vc-responsible-backend' in the info doc "Supported Version Control Systems" in general. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJYD60NAAoJECZsfTOCL4R42lQP/RzC0EjMgRZm4mK+5AxlOo6z gs0DhIUkfI5JE49+Z2gJX5zX18GrrDkOGl/J35VvyaFv8XXsxBytfOAPdf1AU+Pp jzLsmpel6HaxFG65dBJRJzN4id2hYmpN9hHIFhThbC8zt9ciqCPxyW7CK+pDtPKK 1HINJYfE2C7phDrqyqVv3657yEJ7CTBbxaRUIxaX0OlPEcJ7LHNXlFNl4VcoYVs+ jDkxzZlilmc3wbm3zyE/RuIntaV44K3BOXupRw1T0t0gHAL4bwWGt/tTf+V+lnUG jatF5bhuGHtR7XLUDGD1gwCHV1RtEtB8cliMgGCKQhg97GTDtE482TlDm8z7sogv wg7Ys1YV6tWmx82gMJguIrQSuUtz5L1IP81hBcoZm7mMbN8D5iuPYtXbcL7y1WQH EwSUfwjGlbiAdXhG3ohQMlj9VweSVxpUGtjjh/ceqpBrZOoeXkapNObybrtriI/y +8z0vdt38+nULTrD3R/if4epZ85VhLQrRxQtLDqsVoEEyVih/5ZPjIcE7me5HGsj 9Z+UpvWSdmlKidW5i33aJOBEKq4pGmrXwX2nt3gLnGoofekvmRvcs6+akKVnhfRK ewnaPoPdLmB646DOjPnx1Fv5evJC5IaOBXH+yU79TiK+0JX6Olsb275Q2nQ2IWiL pXaKt9Wb81986lOUNsNd =XLzU -----END PGP SIGNATURE----- --=-=-=--