* 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