From ddf6278e8fcbaa4939539277b111061b7c00f550 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Tue, 5 Jul 2022 21:00:24 +0800 Subject: [PATCH] ob-core: Fix nil value of `org-babel-temporary-stable-directory' * lisp/ob-core.el: Fallback the value of `org-babel-temporary-stable-directory' to `org-babel-temporary-directory' if there are issues with directory creation. Fixes https://yhetil.org/emacs-devel/87sfnfhm6v.fsf@yandex.com --- lisp/ob-core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 6c379c121..aaf895d74 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -3167,7 +3167,8 @@ (defvar org-babel-temporary-stable-directory (expand-file-name "babel-stable" (temporary-file-directory))) - (t nil))) + ;; Fallback if things do not work. + (t org-babel-temporary-directory))) "Directory to hold temporary files created to execute code blocks. Used by `org-babel-temp-file'. This directory will be removed on Emacs shutdown.")) -- 2.35.1