emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc with svn and git


From: Michael Albinus
Subject: Re: vc with svn and git
Date: Sat, 25 Feb 2017 09:01:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> 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).

I don't know the situation with tarballs, but for Tramp it is
implemented and useful. Tramp's implementation uses some caching indeed
for performance improvement. See the comment in tramp-sh.el, heading
`tramp-sh-handle-vc-registered'.

>         Stefan

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]