(vc-call): Add doc string.

This commit is contained in:
Jason Rumney 2007-08-06 11:03:50 +00:00
parent dca921f5a0
commit daffc81ab9
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-08-06 Jason Rumney <jasonr@gnu.org>
* menu-bar.el (menu-bar-vc-filter): Use vc-call-backend.
* vc-hooks.el (vc-call): Add doc string.
2007-08-06 Michael Albinus <michael.albinus@gmx.de>
* net/ange-ftp.el (ange-ftp-hook-function): Catch also errors in

View file

@ -279,7 +279,10 @@ It is usually called via the `vc-call' macro."
(t (apply f args)))))
(defmacro vc-call (fun file &rest args)
;; BEWARE!! `file' is evaluated twice!!
"A convenience macro for calling VC backend functions.
Functions called by this macro must accept FILE as the first argument.
ARGS specifies any additional arguments. FUN should be unquoted.
BEWARE!! `file' is evaluated twice!!"
`(vc-call-backend (vc-backend ,file) ',fun ,file ,@args))
(defsubst vc-parse-buffer (pattern i)