aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-28 00:01:59 -0700
committerGlenn Morris2013-05-28 00:01:59 -0700
commite658d75cda04a34e810875b2b5dceb0998335bc8 (patch)
treef153d2b7355f4756b640c97bbbdc502650dfd33a
parent98e87fb36a4e1a912bf20d2ec72240042441b7d3 (diff)
downloademacs-e658d75cda04a34e810875b2b5dceb0998335bc8.tar.gz
emacs-e658d75cda04a34e810875b2b5dceb0998335bc8.zip
Silence some vc compilation warnings
* lisp/vc/vc-arch.el (vc-exec-after): Declare. (vc-switches): Autoload. * lisp/vc/vc-bzr.el: No need to require vc when compiling. (vc-exec-after, vc-set-async-update, vc-default-dir-printer) (vc-resynch-buffer, vc-dir-refresh): Declare. (vc-setup-buffer, vc-switches): Autoload. * lisp/vc/vc-dir.el (desktop-missing-file-warning): Declare. * lisp/vc/vc-mtn.el (vc-exec-after): Declare. (vc-switches): Autoload. * lisp/vc/vc-rcs.el (vc-expand-dirs, vc-switches) (vc-tag-precondition, vc-buffer-sync, vc-rename-master): Autoload. (vc-file-tree-walk): Declare. * lisp/vc/vc-svn.el (vc-exec-after): Declare. (vc-switches, vc-setup-buffer): Autoload. * lisp/obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert): Autoload. (vc-resynch-buffer): Declare.
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/vc/vc-arch.el5
-rw-r--r--lisp/vc/vc-bzr.el22
-rw-r--r--lisp/vc/vc-dir.el2
-rw-r--r--lisp/vc/vc-mtn.el5
-rw-r--r--lisp/vc/vc-rcs.el11
-rw-r--r--lisp/vc/vc-svn.el7
7 files changed, 68 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 76da6f6e74f..abb250ecc65 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,23 @@
12013-05-28 Glenn Morris <rgm@gnu.org> 12013-05-28 Glenn Morris <rgm@gnu.org>
2 2
3 * vc/vc-arch.el (vc-exec-after): Declare.
4 (vc-switches): Autoload.
5 * vc/vc-bzr.el: No need to require vc when compiling.
6 (vc-exec-after, vc-set-async-update, vc-default-dir-printer)
7 (vc-resynch-buffer, vc-dir-refresh): Declare.
8 (vc-setup-buffer, vc-switches): Autoload.
9 * vc/vc-dir.el (desktop-missing-file-warning): Declare.
10 * vc/vc-mtn.el (vc-exec-after): Declare.
11 (vc-switches): Autoload.
12 * vc/vc-rcs.el (vc-expand-dirs, vc-switches)
13 (vc-tag-precondition, vc-buffer-sync, vc-rename-master): Autoload.
14 (vc-file-tree-walk): Declare.
15 * vc/vc-svn.el (vc-exec-after): Declare.
16 (vc-switches, vc-setup-buffer): Autoload.
17 * obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert):
18 Autoload.
19 (vc-resynch-buffer): Declare.
20
3 * obsolete/fast-lock.el (byte-compile-warnings): 21 * obsolete/fast-lock.el (byte-compile-warnings):
4 Don't warn about obsolete features in this obsolete file. 22 Don't warn about obsolete features in this obsolete file.
5 23
diff --git a/lisp/vc/vc-arch.el b/lisp/vc/vc-arch.el
index 52609457ebc..f94e19271ee 100644
--- a/lisp/vc/vc-arch.el
+++ b/lisp/vc/vc-arch.el
@@ -311,6 +311,9 @@ Only the value `maybe' can be trusted :-(."
311 'up-to-date 311 'up-to-date
312 'edited))))))))) 312 'edited)))))))))
313 313
314;; -dir-status called from vc-dir, which loads vc, which loads vc-dispatcher.
315(declare-function vc-exec-after "vc-dispatcher" (code))
316
314(defun vc-arch-dir-status (dir callback) 317(defun vc-arch-dir-status (dir callback)
315 "Run 'tla inventory' for DIR and pass results to CALLBACK. 318 "Run 'tla inventory' for DIR and pass results to CALLBACK.
316CALLBACK expects (ENTRIES &optional MORE-TO-COME); see 319CALLBACK expects (ENTRIES &optional MORE-TO-COME); see
@@ -432,6 +435,8 @@ CALLBACK expects (ENTRIES &optional MORE-TO-COME); see
432 (message "There are unresolved conflicts in %s" 435 (message "There are unresolved conflicts in %s"
433 (file-name-nondirectory rej)))))) 436 (file-name-nondirectory rej))))))
434 437
438(autoload 'vc-switches "vc")
439
435(defun vc-arch-checkin (files rev comment) 440(defun vc-arch-checkin (files rev comment)
436 (if rev (error "Committing to a specific revision is unsupported")) 441 (if rev (error "Committing to a specific revision is unsupported"))
437 ;; FIXME: This implementation probably only works for singleton filesets 442 ;; FIXME: This implementation probably only works for singleton filesets
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el
index 4a08403c93e..5e76d8464a5 100644
--- a/lisp/vc/vc-bzr.el
+++ b/lisp/vc/vc-bzr.el
@@ -47,8 +47,7 @@
47 47
48(eval-when-compile 48(eval-when-compile
49 (require 'cl-lib) 49 (require 'cl-lib)
50 (require 'vc) ;; for vc-exec-after 50 (require 'vc-dir)) ; vc-dir-at-event
51 (require 'vc-dir))
52 51
53;; Clear up the cache to force vc-call to check again and discover 52;; Clear up the cache to force vc-call to check again and discover
54;; new functions when we reload this file. 53;; new functions when we reload this file.
@@ -320,6 +319,12 @@ in the repository root directory of FILE."
320 ("^Using saved parent location: \\(.+\\)" 1 nil nil 0)) 319 ("^Using saved parent location: \\(.+\\)" 1 nil nil 0))
321 "Value of `compilation-error-regexp-alist' in *vc-bzr* buffers.") 320 "Value of `compilation-error-regexp-alist' in *vc-bzr* buffers.")
322 321
322;; Follows vc-bzr-(async-)command, which uses vc-do-(async-)command
323;; from vc-dispatcher.
324(declare-function vc-exec-after "vc-dispatcher" (code))
325;; Follows vc-exec-after.
326(declare-function vc-set-async-update "vc-dispatcher" (process-buffer))
327
323(defun vc-bzr-pull (prompt) 328(defun vc-bzr-pull (prompt)
324 "Pull changes into the current Bzr branch. 329 "Pull changes into the current Bzr branch.
325Normally, this runs \"bzr pull\". However, if the branch is a 330Normally, this runs \"bzr pull\". However, if the branch is a
@@ -693,6 +698,8 @@ REV non-nil gets an error."
693 (2 'change-log-email)) 698 (2 'change-log-email))
694 ("^ *timestamp: \\(.*\\)" (1 'change-log-date-face))))))) 699 ("^ *timestamp: \\(.*\\)" (1 'change-log-date-face)))))))
695 700
701(autoload 'vc-setup-buffer "vc-dispatcher")
702
696(defun vc-bzr-print-log (files buffer &optional shortlog start-revision limit) 703(defun vc-bzr-print-log (files buffer &optional shortlog start-revision limit)
697 "Print commit log associated with FILES into specified BUFFER. 704 "Print commit log associated with FILES into specified BUFFER.
698If SHORTLOG is non-nil, use --line format. 705If SHORTLOG is non-nil, use --line format.
@@ -778,6 +785,8 @@ If LIMIT is non-nil, show no more than this many entries."
778 (goto-char (point-min))) 785 (goto-char (point-min)))
779 found))) 786 found)))
780 787
788(autoload 'vc-switches "vc")
789
781(defun vc-bzr-diff (files &optional rev1 rev2 buffer) 790(defun vc-bzr-diff (files &optional rev1 rev2 buffer)
782 "VC bzr backend for diff." 791 "VC bzr backend for diff."
783 (let* ((switches (vc-switches 'bzr 'diff)) 792 (let* ((switches (vc-switches 'bzr 'diff))
@@ -898,6 +907,8 @@ stream. Standard error output is discarded."
898 (:conc-name vc-bzr-extra-fileinfo->)) 907 (:conc-name vc-bzr-extra-fileinfo->))
899 extra-name) ;; original name for rename targets, new name for 908 extra-name) ;; original name for rename targets, new name for
900 909
910(declare-function vc-default-dir-printer "vc-dir" (backend fileentry))
911
901(defun vc-bzr-dir-printer (info) 912(defun vc-bzr-dir-printer (info)
902 "Pretty-printer for the vc-dir-fileinfo structure." 913 "Pretty-printer for the vc-dir-fileinfo structure."
903 (let ((extra (vc-dir-fileinfo->extra info))) 914 (let ((extra (vc-dir-fileinfo->extra info)))
@@ -1110,6 +1121,10 @@ stream. Standard error output is discarded."
1110 'help-echo shelve-help-echo 1121 'help-echo shelve-help-echo
1111 'face 'font-lock-variable-name-face)))))) 1122 'face 'font-lock-variable-name-face))))))
1112 1123
1124;; Follows vc-bzr-command, which uses vc-do-command from vc-dispatcher.
1125(declare-function vc-resynch-buffer "vc-dispatcher"
1126 (file &optional keep noquery reset-vc-info))
1127
1113(defun vc-bzr-shelve (name) 1128(defun vc-bzr-shelve (name)
1114 "Create a shelve." 1129 "Create a shelve."
1115 (interactive "sShelf name: ") 1130 (interactive "sShelf name: ")
@@ -1169,6 +1184,9 @@ stream. Standard error output is discarded."
1169 (match-string 1) 1184 (match-string 1)
1170 (error "Cannot find shelf at point")))) 1185 (error "Cannot find shelf at point"))))
1171 1186
1187;; vc-bzr-shelve-delete-at-point must be called from a vc-dir buffer.
1188(declare-function vc-dir-refresh "vc-dir" ())
1189
1172(defun vc-bzr-shelve-delete-at-point () 1190(defun vc-bzr-shelve-delete-at-point ()
1173 (interactive) 1191 (interactive)
1174 (let ((shelve (vc-bzr-shelve-get-at-point (point)))) 1192 (let ((shelve (vc-bzr-shelve-get-at-point (point))))
diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
index 1fdd2018946..80f78496a43 100644
--- a/lisp/vc/vc-dir.el
+++ b/lisp/vc/vc-dir.el
@@ -1299,6 +1299,8 @@ These are the commands available for use in the file status buffer:
1299 "Auxiliary information to be saved in desktop file." 1299 "Auxiliary information to be saved in desktop file."
1300 (cons (desktop-file-name default-directory dirname) vc-dir-backend)) 1300 (cons (desktop-file-name default-directory dirname) vc-dir-backend))
1301 1301
1302(defvar desktop-missing-file-warning)
1303
1302(defun vc-dir-restore-desktop-buffer (_filename _buffername misc-data) 1304(defun vc-dir-restore-desktop-buffer (_filename _buffername misc-data)
1303 "Restore a `vc-dir' buffer specified in a desktop file." 1305 "Restore a `vc-dir' buffer specified in a desktop file."
1304 (let ((dir (car misc-data)) 1306 (let ((dir (car misc-data))
diff --git a/lisp/vc/vc-mtn.el b/lisp/vc/vc-mtn.el
index fbfd89561b7..29996fafe92 100644
--- a/lisp/vc/vc-mtn.el
+++ b/lisp/vc/vc-mtn.el
@@ -123,6 +123,9 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
123 ((match-end 2) (push (list (match-string 3) 'added) result)))) 123 ((match-end 2) (push (list (match-string 3) 'added) result))))
124 (funcall update-function result))) 124 (funcall update-function result)))
125 125
126;; -dir-status called from vc-dir, which loads vc, which loads vc-dispatcher.
127(declare-function vc-exec-after "vc-dispatcher" (code))
128
126(defun vc-mtn-dir-status (dir update-function) 129(defun vc-mtn-dir-status (dir update-function)
127 (vc-mtn-command (current-buffer) 'async dir "status") 130 (vc-mtn-command (current-buffer) 'async dir "status")
128 (vc-exec-after 131 (vc-exec-after
@@ -233,6 +236,8 @@ If LIMIT is non-nil, show no more than this many entries."
233;; (defun vc-mtn-show-log-entry (revision) 236;; (defun vc-mtn-show-log-entry (revision)
234;; ) 237;; )
235 238
239(autoload 'vc-switches "vc")
240
236(defun vc-mtn-diff (files &optional rev1 rev2 buffer) 241(defun vc-mtn-diff (files &optional rev1 rev2 buffer)
237 "Get a difference report using monotone between two revisions of FILES." 242 "Get a difference report using monotone between two revisions of FILES."
238 (apply 'vc-mtn-command (or buffer "*vc-diff*") 1 files "diff" 243 (apply 'vc-mtn-command (or buffer "*vc-diff*") 1 files "diff"
diff --git a/lisp/vc/vc-rcs.el b/lisp/vc/vc-rcs.el
index 0a2fc804e6d..e85494b2156 100644
--- a/lisp/vc/vc-rcs.el
+++ b/lisp/vc/vc-rcs.el
@@ -200,6 +200,8 @@ For a description of possible values, see `vc-check-master-templates'."
200 (vc-rcs-state file)))) 200 (vc-rcs-state file))))
201 (vc-rcs-state file))))) 201 (vc-rcs-state file)))))
202 202
203(autoload 'vc-expand-dirs "vc")
204
203(defun vc-rcs-dir-status (dir update-function) 205(defun vc-rcs-dir-status (dir update-function)
204 ;; FIXME: this function should be rewritten or `vc-expand-dirs' 206 ;; FIXME: this function should be rewritten or `vc-expand-dirs'
205 ;; should be changed to take a backend parameter. Using 207 ;; should be changed to take a backend parameter. Using
@@ -270,6 +272,8 @@ When VERSION is given, perform check for that version."
270 ;; RCS is totally file-oriented, so all we have to do is make the directory. 272 ;; RCS is totally file-oriented, so all we have to do is make the directory.
271 (make-directory "RCS")) 273 (make-directory "RCS"))
272 274
275(autoload 'vc-switches "vc")
276
273(defun vc-rcs-register (files &optional rev comment) 277(defun vc-rcs-register (files &optional rev comment)
274 "Register FILES into the RCS version-control system. 278 "Register FILES into the RCS version-control system.
275REV is the optional revision number for the files. COMMENT can be used 279REV is the optional revision number for the files. COMMENT can be used
@@ -821,6 +825,9 @@ systime, or nil if there is none. Also, reposition point."
821;;; Tag system 825;;; Tag system
822;;; 826;;;
823 827
828(autoload 'vc-tag-precondition "vc")
829(declare-function vc-file-tree-walk "vc" (dirname func &rest args))
830
824(defun vc-rcs-create-tag (dir name branchp) 831(defun vc-rcs-create-tag (dir name branchp)
825 (when branchp 832 (when branchp
826 (error "RCS backend does not support module branches")) 833 (error "RCS backend does not support module branches"))
@@ -892,6 +899,8 @@ and CVS."
892 (t "rcs2log"))) 899 (t "rcs2log")))
893 "Path to the `rcs2log' program (normally in `exec-directory').") 900 "Path to the `rcs2log' program (normally in `exec-directory').")
894 901
902(autoload 'vc-buffer-sync "vc-dispatcher")
903
895(defun vc-rcs-update-changelog (files) 904(defun vc-rcs-update-changelog (files)
896 "Default implementation of update-changelog. 905 "Default implementation of update-changelog.
897Uses `rcs2log' which only works for RCS and CVS." 906Uses `rcs2log' which only works for RCS and CVS."
@@ -958,6 +967,8 @@ Uses `rcs2log' which only works for RCS and CVS."
958 nil t) 967 nil t)
959 (replace-match "$\\1$")))) 968 (replace-match "$\\1$"))))
960 969
970(autoload 'vc-rename-master "vc")
971
961(defun vc-rcs-rename-file (old new) 972(defun vc-rcs-rename-file (old new)
962 ;; Just move the master file (using vc-rcs-master-templates). 973 ;; Just move the master file (using vc-rcs-master-templates).
963 (vc-rename-master (vc-name old) new vc-rcs-master-templates)) 974 (vc-rename-master (vc-name old) new vc-rcs-master-templates))
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el
index a94bf0d6117..39b107b81b5 100644
--- a/lisp/vc/vc-svn.el
+++ b/lisp/vc/vc-svn.el
@@ -215,6 +215,9 @@ If you want to force an empty list of arguments, use t."
215 (setq result (cons (list filename state) result))))) 215 (setq result (cons (list filename state) result)))))
216 (funcall callback result))) 216 (funcall callback result)))
217 217
218;; -dir-status called from vc-dir, which loads vc, which loads vc-dispatcher.
219(declare-function vc-exec-after "vc-dispatcher" (code))
220
218(defun vc-svn-dir-status (dir callback) 221(defun vc-svn-dir-status (dir callback)
219 "Run 'svn status' for DIR and update BUFFER via CALLBACK. 222 "Run 'svn status' for DIR and update BUFFER via CALLBACK.
220CALLBACK is called as (CALLBACK RESULT BUFFER), where 223CALLBACK is called as (CALLBACK RESULT BUFFER), where
@@ -293,6 +296,8 @@ RESULT is a list of conses (FILE . STATE) for directory DIR."
293 (vc-svn-command "*vc*" 0 "." "checkout" 296 (vc-svn-command "*vc*" 0 "." "checkout"
294 (concat "file://" default-directory "SVN"))) 297 (concat "file://" default-directory "SVN")))
295 298
299(autoload 'vc-switches "vc")
300
296(defun vc-svn-register (files &optional rev comment) 301(defun vc-svn-register (files &optional rev comment)
297 "Register FILES into the SVN version-control system. 302 "Register FILES into the SVN version-control system.
298The COMMENT argument is ignored This does an add but not a commit. 303The COMMENT argument is ignored This does an add but not a commit.
@@ -493,6 +498,8 @@ or svn+ssh://."
493 (require 'add-log) 498 (require 'add-log)
494 (set (make-local-variable 'log-view-per-file-logs) nil)) 499 (set (make-local-variable 'log-view-per-file-logs) nil))
495 500
501(autoload 'vc-setup-buffer "vc-dispatcher")
502
496(defun vc-svn-print-log (files buffer &optional shortlog start-revision limit) 503(defun vc-svn-print-log (files buffer &optional shortlog start-revision limit)
497 "Print commit log associated with FILES into specified BUFFER. 504 "Print commit log associated with FILES into specified BUFFER.
498SHORTLOG is ignored. 505SHORTLOG is ignored.