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

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

[elpa] externals/org 44e1cbb094: org-compile-file: Fix when `org-batch-t


From: ELPA Syncer
Subject: [elpa] externals/org 44e1cbb094: org-compile-file: Fix when `org-batch-test' is not defined
Date: Fri, 24 Mar 2023 10:58:27 -0400 (EDT)

branch: externals/org
commit 44e1cbb09484c8f8c49ef49376ef7988b04decc2
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-compile-file: Fix when `org-batch-test' is not defined
    
    * lisp/org-macs.el (org-compile-file): Avoid error when
    `org-batch-test' is not defined.
---
 lisp/org-macs.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 00979c2edc..15a6f3e6a3 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -382,7 +382,7 @@ it for output."
     (unless (org-file-newer-than-p output time)
       (ignore (defvar org-batch-test))
       ;; Display logs when running tests.
-      (when org-batch-test
+      (when (bound-and-true-p org-batch-test)
         (message "org-compile-file log ::\n-----\n%s\n-----\n"
                  (with-current-buffer log-buf (buffer-string))))
       (error (format "File %S wasn't produced%s" output err-msg)))



reply via email to

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