From 412082915f0235762c110e40ae2d5b8fa655c795 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 9 Feb 1994 23:02:28 +0000 Subject: [PATCH] (vc-comment-to-change-log): Load add-log before binding add-log-current-defun-function. --- lisp/vc.el | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.39.5