Skip to content

Commit

Permalink
org-macro: Require vc in vc-modified-time
Browse files Browse the repository at this point in the history
* lisp/org-macro.el (org-macro--vc-modified-time): Not all the vc
components needed are autoloaded, allowing for the error:
"vc-call-backend: Symbol’s value as variable is void: vc-log-view-type".
To prevent this issue from cropping up, vc is now required at the start
of `org-macro--vc-modified-time'.
  • Loading branch information
tecosaur committed Jul 25, 2022
1 parent 5a64429 commit 394f494
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lisp/org-macro.el
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ Return value as a string."
value)))

(defun org-macro--vc-modified-time (file)
(require 'vc) ; Not everything we need is autoloaded.
(save-window-excursion
(when (vc-backend file)
(let ((buf (get-buffer-create " *org-vc*"))
Expand Down

0 comments on commit 394f494

Please sign in to comment.