aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2007-08-06 11:03:50 +0000
committerJason Rumney2007-08-06 11:03:50 +0000
commitdaffc81ab9daa5d728ecd72c0f522a86775baaaf (patch)
tree04d6ddd78c59072b8d7f836af05799c993d04f7b
parentdca921f5a0bd4a0b5fc2cf78fca9b47bbf5b8ac9 (diff)
downloademacs-daffc81ab9daa5d728ecd72c0f522a86775baaaf.tar.gz
emacs-daffc81ab9daa5d728ecd72c0f522a86775baaaf.zip
(vc-call): Add doc string.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/vc-hooks.el5
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 879d9646e04..4ec6319b06b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-08-06 Jason Rumney <jasonr@gnu.org>
2
3 * menu-bar.el (menu-bar-vc-filter): Use vc-call-backend.
4
5 * vc-hooks.el (vc-call): Add doc string.
6
12007-08-06 Michael Albinus <michael.albinus@gmx.de> 72007-08-06 Michael Albinus <michael.albinus@gmx.de>
2 8
3 * net/ange-ftp.el (ange-ftp-hook-function): Catch also errors in 9 * net/ange-ftp.el (ange-ftp-hook-function): Catch also errors in
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 09001e59691..d38bc000465 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -279,7 +279,10 @@ It is usually called via the `vc-call' macro."
279 (t (apply f args))))) 279 (t (apply f args)))))
280 280
281(defmacro vc-call (fun file &rest args) 281(defmacro vc-call (fun file &rest args)
282 ;; BEWARE!! `file' is evaluated twice!! 282 "A convenience macro for calling VC backend functions.
283Functions called by this macro must accept FILE as the first argument.
284ARGS specifies any additional arguments. FUN should be unquoted.
285BEWARE!! `file' is evaluated twice!!"
283 `(vc-call-backend (vc-backend ,file) ',fun ,file ,@args)) 286 `(vc-call-backend (vc-backend ,file) ',fun ,file ,@args))
284 287
285(defsubst vc-parse-buffer (pattern i) 288(defsubst vc-parse-buffer (pattern i)