0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

org-macro: Require vc in vc-modified-time

* 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'.
This commit is contained in:
TEC 2022-07-25 18:29:49 +08:00
parent 5a64429b27
commit 394f494935
Signed by: tec
GPG key ID: 779591AFDB81F06C

View file

@ -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*"))