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 10:13:33 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>     (put 'HG 'vc-functions nil)
           ^^^
           'Hg

I plan on installing the patch below into master as soon as
git.sv.gnu.org responds again,


        Stefan


diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 626cf6165a..2d6ca1386a 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -183,6 +183,10 @@ vc-git-log-output-coding-system
 ;; History of Git commands.
 (defvar vc-git-history nil)
 
+;; Clear up the cache to force vc-call to check again and discover
+;; new functions when we reload this file.
+(put 'Git 'vc-functions nil)
+
 ;;; BACKEND PROPERTIES
 
 (defun vc-git-revision-granularity () 'repository)
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 08b1be8f6d..ad817fd9b9 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -175,6 +175,10 @@ vc-hg-root-log-format
   :version "24.5")
 
 
+;; Clear up the cache to force vc-call to check again and discover
+;; new functions when we reload this file.
+(put 'Hg 'vc-functions nil)
+
 ;;; Properties of the backend
 
 (defvar vc-hg-history nil)




reply via email to

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