summaryrefslogtreecommitdiff
path: root/lisp/vc.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-02-09 23:02:28 +0000
committerKarl Heuer <kwzh@gnu.org>1994-02-09 23:02:28 +0000
commitaaed73981d991dc9babd43900f56e55910bd2e68 (patch)
tree91b69ae57592f56aa02cd2ff70caf3afce962935 /lisp/vc.el
parenta9a127ca6da2a990a8ec21ec67311c9c29c5bb1d (diff)
downloademacs-aaed73981d991dc9babd43900f56e55910bd2e68.tar.gz
(vc-comment-to-change-log): Load add-log before binding
add-log-current-defun-function.
Diffstat (limited to 'lisp/vc.el')
-rw-r--r--lisp/vc.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 59054fa1826..896e126d178 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -617,6 +617,9 @@ If nil, uses `change-log-default-name'."
(interactive (if current-prefix-arg
(list current-prefix-arg
(prompt-for-change-log-name))))
+ ;; Make sure the defvar for add-log-current-defun-function has been executed
+ ;; before binding it.
+ (require 'add-log)
(let (;; Extract the comment first so we get any error before doing anything.
(comment (ring-ref vc-comment-ring 0))
;; Don't let add-change-log-entry insert a defun name.