emacs-devel
[Top][All Lists]
Advanced

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

Re: how to `register' vc-hg-region-history in vc-region-history?


From: Stefan Monnier
Subject: Re: how to `register' vc-hg-region-history in vc-region-history?
Date: Thu, 18 Jan 2018 09:51:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Uwe Brauer <address@hidden> writes:
> Seems a natural generalization of vc-git-region-history  However I don't see
> how to tell vc-region-history to tell that the new function now
> exists.

VC automatically discovers that.  But it also remembers what it failed
to find, os if you had tried vc-region-history in the same session
before defining that function, you need to

    (put 'HG 'vc-functions nil)

to flush VC's cache of known backend functions.
Not sure why this line is missing from vc-hg.el, contrarily to, say, vc-cvs.el.


        Stefan




reply via email to

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