emacs-orgmode
[Top][All Lists]
Advanced

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

[PATCH] Bugfix to org-babel-remove-temporary-stable-directory


From: Mark Dawson
Subject: [PATCH] Bugfix to org-babel-remove-temporary-stable-directory
Date: Wed, 6 Jul 2022 21:37:59 +0100


* ob-core.el (org-babel-remove-temporary-stable-directory): This
function was failing when `org-babel-temporary-stable-directory' was
nil.  This variable is nil when initialised.  The function
now checks that the variable is non-nil before attempting to call
`file-exists-p`.
TINYCHANGE
---
 lisp/ob-core.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 6c379c121..d4a50734d 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -3265,6 +3265,7 @@ constructed like the following: PREFIXDATAhashSUFFIX."
 (defun org-babel-remove-temporary-stable-directory ()
   "Remove `org-babel-temporary-stable-directory' and on Emacs shutdown."
   (when (and (boundp 'org-babel-temporary-stable-directory)
+             org-babel-temporary-stable-directory
      (file-exists-p org-babel-temporary-stable-directory))
     (let ((org-babel-temporary-directory
            org-babel-temporary-stable-directory))
--
2.34.0



reply via email to

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