emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 394f494935: org-macro: Require vc in vc-modified-ti


From: ELPA Syncer
Subject: [elpa] externals/org 394f494935: org-macro: Require vc in vc-modified-time
Date: Mon, 25 Jul 2022 06:57:53 -0400 (EDT)

branch: externals/org
commit 394f494935d1d38bc3fee72db37ae5c652633ca1
Author: TEC <tec@tecosaur.com>
Commit: TEC <tec@tecosaur.com>

    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'.
---
 lisp/org-macro.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org-macro.el b/lisp/org-macro.el
index c1e6162743..e280815a2c 100644
--- a/lisp/org-macro.el
+++ b/lisp/org-macro.el
@@ -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*"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]