emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mark Dawson <markgdawson@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Bugfix to org-babel-remove-temporary-stable-directory
Date: Wed, 6 Jul 2022 21:37:59 +0100	[thread overview]
Message-ID: <CAAgMa4P=A4-NFydB8cR7VhpzwvFTxa5Qq7sgr=RZ5vDyB391TA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

* 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
 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

[-- Attachment #2: Type: text/html, Size: 1116 bytes --]

             reply	other threads:[~2022-07-06 21:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-06 20:37 Mark Dawson [this message]
2022-07-07  9:32 ` [PATCH] Bugfix to org-babel-remove-temporary-stable-directory Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAgMa4P=A4-NFydB8cR7VhpzwvFTxa5Qq7sgr=RZ5vDyB391TA@mail.gmail.com' \
    --to=markgdawson@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).