[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r110254: Comments for vc-bzr, clarify
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r110254: Comments for vc-bzr, clarifying vc-bzr-registered |
Date: |
Sat, 29 Sep 2012 16:13:29 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 110254
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Sat 2012-09-29 16:13:29 -0700
message:
Comments for vc-bzr, clarifying vc-bzr-registered
modified:
lisp/vc/vc-bzr.el
=== modified file 'lisp/vc/vc-bzr.el'
--- a/lisp/vc/vc-bzr.el 2012-09-15 01:11:52 +0000
+++ b/lisp/vc/vc-bzr.el 2012-09-29 23:13:29 +0000
@@ -150,12 +150,6 @@
(defconst vc-bzr-admin-branchconf
(concat vc-bzr-admin-dirname "/branch/branch.conf"))
-;;;###autoload (defun vc-bzr-registered (file)
-;;;###autoload (if (vc-find-root file vc-bzr-admin-checkout-format-file)
-;;;###autoload (progn
-;;;###autoload (load "vc-bzr")
-;;;###autoload (vc-bzr-registered file))))
-
(defun vc-bzr-root (file)
"Return the root directory of the bzr repository containing FILE."
;; Cache technique copied from vc-arch.el.
@@ -291,6 +285,14 @@
(message "Falling back on \"slow\" status detection (%S)" err)
(vc-bzr-state file))))))
+;; This is a cheap approximation that is autoloaded. If it finds a
+;; possible match it loads this file and runs the real function.
+;; It requires vc-bzr-admin-checkout-format-file to be autoloaded too.
+;;;###autoload (defun vc-bzr-registered (file)
+;;;###autoload (if (vc-find-root file vc-bzr-admin-checkout-format-file)
+;;;###autoload (progn
+;;;###autoload (load "vc-bzr")
+;;;###autoload (vc-bzr-registered file))))
(defun vc-bzr-registered (file)
"Return non-nil if FILE is registered with bzr."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r110254: Comments for vc-bzr, clarifying vc-bzr-registered,
Glenn Morris <=