]> code.delx.au - gnu-emacs/commitdiff
Pacify byte-compiler in lisp/vc
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 May 2016 20:40:17 +0000 (13:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 May 2016 20:40:52 +0000 (13:40 -0700)
* lisp/vc/vc-bzr.el, lisp/vc/vc-cvs.el, lisp/vc/vc-hg.el:
* lisp/vc/vc-rcs.el, lisp/vc/vc-src.el:
Declare functions defined elsewhere, to forestall “might not
be defined at runtime” warnings.

lisp/vc/vc-bzr.el
lisp/vc/vc-cvs.el
lisp/vc/vc-hg.el
lisp/vc/vc-rcs.el
lisp/vc/vc-src.el

index 03c134a100ed64727ebc5a003971c7cd65108c37..4bcab66fb52b533706e297087f9c270ad7d305f9 100644 (file)
   (require 'vc-dispatcher)
   (require 'vc-dir))                    ; vc-dir-at-event
 
+(declare-function vc-deduce-fileset "vc"
+                  (&optional observer allow-unregistered
+                             state-model-only-files))
+
+
 ;; Clear up the cache to force vc-call to check again and discover
 ;; new functions when we reload this file.
 (put 'Bzr 'vc-functions nil)
index 2dca708dc38f830feb0a661a2264e3e0c5f60e58..dfe6b293e94e97bb2708308805ae145f91cb2eaf 100644 (file)
 
 (eval-when-compile (require 'vc))
 
+(declare-function vc-branch-p "vc" (rev))
+(declare-function vc-checkout "vc" (file &optional rev))
+(declare-function vc-expand-dirs "vc" (file-or-dir-list backend))
+(declare-function vc-read-revision "vc"
+                  (prompt &optional files backend default initial-input))
+
 ;; Clear up the cache to force vc-call to check again and discover
 ;; new functions when we reload this file.
 (put 'CVS 'vc-functions nil)
index 5fb93bc0c8cb5b3aed7c6b343b9eb76523706659..78ff56c3ae37b455844cf4a4ee5ba3bd0b2c605b 100644 (file)
   (require 'vc)
   (require 'vc-dir))
 
+(declare-function vc-compilation-mode "vc-dispatcher" (backend))
+
 ;;; Customization options
 
 (defgroup vc-hg nil
index b972956b1096b297a192c717b4337dfea8e4fe56..fcb1849d743e87bbb6ecdfea12e8cecec71d3781 100644 (file)
   (require 'cl-lib)
   (require 'vc))
 
+(declare-function vc-branch-p "vc" (rev))
+(declare-function vc-read-revision "vc"
+                  (prompt &optional files backend default initial-input))
+(declare-function vc-buffer-context "vc-dispatcher" ())
+(declare-function vc-restore-buffer-context "vc-dispatcher" (context))
+(declare-function vc-setup-buffer "vc-dispatcher" (buf))
+
 (defgroup vc-rcs nil
   "VC RCS backend."
   :version "24.1"
index 23290428043a6fce4e51d5545c5ec569d8b5c313..8b82b56a6c8befbf0ba71e7064f6d049bb291262 100644 (file)
@@ -85,6 +85,8 @@
   (require 'cl-lib)
   (require 'vc))
 
+(declare-function vc-setup-buffer "vc-dispatcher" (buf))
+
 (defgroup vc-src nil
   "VC SRC backend."
   :version "25.1"