# HG changeset patch
# User Karl Heuer <kwzh@gnu.org>
# Date 760834948 0
# Node ID 49029e28ed2c815174cf85baf13148d150d5bfe4
# Parent  ebef92c4d26c8aeb92f95e9bfdfc97bc499d8b9f
(vc-comment-to-change-log): Load add-log before binding
add-log-current-defun-function.

diff -r ebef92c4d26c -r 49029e28ed2c lisp/vc.el
--- a/lisp/vc.el	Wed Feb 09 22:32:39 1994 +0000
+++ b/lisp/vc.el	Wed Feb 09 23:02:28 1994 +0000
@@ -617,6 +617,9 @@
   (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.