From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: vc with svn and git Date: Fri, 24 Feb 2017 16:16:38 -0500 Message-ID: References: <87bmtrsdkl.fsf@kwork> <87innzqvfi.fsf@kwork> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487971076 26617 195.159.176.226 (24 Feb 2017 21:17:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 21:17:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 24 22:17:51 2017 Return-path: Envelope-to: ged-emacs-devel@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 1chNFL-000647-P7 for ged-emacs-devel@m.gmane.org; Fri, 24 Feb 2017 22:17:47 +0100 Original-Received: from localhost ([::1]:40100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chNFR-0003nD-E2 for ged-emacs-devel@m.gmane.org; Fri, 24 Feb 2017 16:17:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chNEU-0003eV-RD for emacs-devel@gnu.org; Fri, 24 Feb 2017 16:16:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chNEP-0003w8-TC for emacs-devel@gnu.org; Fri, 24 Feb 2017 16:16:54 -0500 Original-Received: from [195.159.176.226] (port=41272 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chNEP-0003vn-Ld for emacs-devel@gnu.org; Fri, 24 Feb 2017 16:16:49 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1chNED-0008NV-V7 for emacs-devel@gnu.org; Fri, 24 Feb 2017 22:16:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:8UmHpFi4w2Od25QQFO0u6HpW9lM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212581 Archived-At: >> I think there's a caching layer going on -- that appears to be what >> this block is about: >> >> ((and (boundp 'file-name-handler-alist) >> (setq handler (find-file-name-handler file 'vc-registered))) >> ;; handler should set vc-backend and return t if registered >> (funcall handler 'vc-registered file)) This is not a cache. It's a hook that was meant (I think) to support VC on remote file names (or maybe even within tarballs). I don't know that it's ever been used (then again, I'm biased because I never liked this hook, so don't take my word for it). > There's no particular reason for even a single directory not to > contain more than one of .svn, .git, RCS, CVS subdirectories and/or ,v > and s. files. That's right. It's perfectly normal to have more than one backend covering the same files. > VC should ask what backend to use in case of ambiguity, That tends to be rather annoying, in my experience. > and there should be a way to force reprompt. There is, it's called `vc-switch-backend` (except it doesn't prompt, but lets you cycle, at least if it still works: I haven't used it in a long while). Stefan