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

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

[elpa] externals-release/org 888689f: org-macro: Adjust for compatibilit


From: ELPA Syncer
Subject: [elpa] externals-release/org 888689f: org-macro: Adjust for compatibility with latest vc (bug#51365)
Date: Sat, 11 Dec 2021 11:57:28 -0500 (EST)

branch: externals-release/org
commit 888689f2baf89742aab16f0eb3d70397895b0f65
Author: TAKAHASHI Yoshio <yfb02119@nifty.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    org-macro: Adjust for compatibility with latest vc (bug#51365)
    
    * lisp/org-macro.el (org-macro--vc-modified-time): Wrap file in a list
    when passing to vc-call to avoid a type error starting with Emacs 28.
    
    Before Emacs's 3572613550f (Fix vc-git-state for filenames with
    wildcards, 2021-08-15), a string could be given to vc-git-print-log as
    the FILES argument because the argument was passed directly as
    vc-git-command's FILE-OR-LIST, which as the name suggests, accepts
    either a string or a list.  After 3572613550f, passing a string leads
    to a type error.
    
    TINYCHANGE
---
 lisp/org-macro.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-macro.el b/lisp/org-macro.el
index c38a07b..c0287a2 100644
--- a/lisp/org-macro.el
+++ b/lisp/org-macro.el
@@ -368,7 +368,7 @@ Return value as a string."
            date)
        (unwind-protect
            (progn
-             (vc-call print-log file buf nil nil 1)
+             (vc-call print-log (list file) buf nil nil 1)
              (with-current-buffer buf
                (vc-exec-after
                 (lambda ()



reply via email to

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