From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: vc with svn and git
Date: Fri, 24 Feb 2017 16:16:38 -0500 [thread overview]
Message-ID: <jwvbmtrl2f9.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CAPM58ogNJENpKGPCWpHXF-o7K6nJ7VkXQaQaB9tVFRdE88DBfg@mail.gmail.com
>> 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
next prev parent reply other threads:[~2017-02-24 21:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 15:23 vc with svn and git Alfred M. Szmidt
2017-02-24 15:35 ` Andreas Schwab
2017-02-24 15:54 ` Alfred M. Szmidt
2017-02-24 17:28 ` Karl Fogel
2017-02-24 17:49 ` Stefan Monnier
2017-02-24 18:11 ` Alfred M. Szmidt
2017-02-24 18:45 ` Karl Fogel
2017-02-24 20:04 ` Richard Copley
2017-02-24 21:16 ` Stefan Monnier [this message]
2017-02-24 21:44 ` Richard Copley
2017-02-25 0:11 ` Stefan Monnier
2017-02-25 8:01 ` Michael Albinus
2017-02-25 13:06 ` Stefan Monnier
2017-02-25 13:18 ` Michael Albinus
2017-02-25 13:36 ` tramp-sh-handle-vc-registered (was: vc with svn and git) Stefan Monnier
2017-02-28 14:54 ` vc with svn and git Alfred M. Szmidt
2017-02-28 18:32 ` Karl Fogel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvbmtrl2f9.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.