From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oAPqA+EDxmICMgAAbAwnHQ (envelope-from ) for ; Wed, 06 Jul 2022 23:51:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aDbqA+EDxmIqHAEA9RJhRA (envelope-from ) for ; Wed, 06 Jul 2022 23:51:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AF7533EFBC for ; Wed, 6 Jul 2022 23:51:28 +0200 (CEST) Received: from localhost ([::1]:57052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Cva-0002xh-JP for larch@yhetil.org; Wed, 06 Jul 2022 17:51:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9Bmn-0001Ut-HT for emacs-orgmode@gnu.org; Wed, 06 Jul 2022 16:38:13 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:35802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9Bmm-0004P7-27 for emacs-orgmode@gnu.org; Wed, 06 Jul 2022 16:38:13 -0400 Received: by mail-wm1-x330.google.com with SMTP id v67-20020a1cac46000000b003a1888b9d36so9823857wme.0 for ; Wed, 06 Jul 2022 13:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:reply-to:from:date:message-id:subject:to; bh=iog6jr15zwMJMcpcLUDQgL4yFUi0elbLkqk5QMjZvig=; b=RbdGDSRpnW3eFJM36YZnttAT9CKpuK+J3jDPExMwATOLHpJJUcvLstyzZz5BXzsFzO pbUlS17VkRzWNuJ+fvvrE2rhcnjuLqhM0HGozPwRIbu9QVRK+mLqB8z0kphc5RkYA8R9 viWEMBrzhZmvtNC5qgVt4G84frp/qgE6Y+aoqIHVMOBK4sZTUGjSwsCkDh3kAw+ovk5q m9BYq1Vs5+zRiVN1+uxdwpupvFZAhL7M2rrQ3KkniO47vOfMyeC9d1puAF9M0acp6h0G Oovc9+BQIMOfiqK3BahHSPKxlhbTsS32YEj/S5q6au2Tz2Ftv3wfoa638a01zmlDeKJW HKEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=iog6jr15zwMJMcpcLUDQgL4yFUi0elbLkqk5QMjZvig=; b=lx2sDLLPiJ7/CY9EICD42509CXHGoYxNRLarRgY5P2Z9gpeSKc8DCPqDWTOMFX+Lcu CMUbi529tcc4KdhfyX0WsA3dUcIAX06Z29bj4yzP8etvEhYTOcAvZaFoenYsQGStEjkn klWjRdt9BNu7SmKQKqTnYYhbsapFSxZEspNqnIGt6hvn7CepgpqPkoLRXxlbuY9mrGde e00f2yT1lHjTi2ypfsmCryoD0vSPe1LRvGreQjdbjnws7ueuseaOsTCEfeANh8vEPtkQ +b1QLk6aNLQxzOQBXCAHvaBskOrC9C9B16y6YSV6obw//MSZgPv9G+HiZjgLX7+O/NOH kFug== X-Gm-Message-State: AJIora8AiIqqBpE1EmbcMso3llhWs/zLEh1Dra24vlsIKtjjXHZ4n5H/ Mdkr9jpw1NECXi27H5oods/PgzQczgxZepk50lepzI0E2Oc= X-Google-Smtp-Source: AGRyM1usOn2KuWYaquItfBVg7SKd/pAB+Tjd8BzaOXrrPAWJzoQroo5LRY0fbo1mbAqMJh1WPhgdrAEYP6mLH+BZChc= X-Received: by 2002:a05:600c:2247:b0:3a0:540c:e93c with SMTP id a7-20020a05600c224700b003a0540ce93cmr428323wmm.171.1657139889908; Wed, 06 Jul 2022 13:38:09 -0700 (PDT) MIME-Version: 1.0 From: Mark Dawson Date: Wed, 6 Jul 2022 21:37:59 +0100 Message-ID: Subject: [PATCH] Bugfix to org-babel-remove-temporary-stable-directory To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000007b2f1e05e328f224" Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=markgdawson@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: markgdawson@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657144288; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iog6jr15zwMJMcpcLUDQgL4yFUi0elbLkqk5QMjZvig=; b=GcjwUlgM+AHjJaRCSZpnmq8KIjQ1hfydXzs5jQZP6CqaOeUVcKH5kj5dQpN51Qm+mp773/ 5id5Pg2C95/5rsvnVrcgvL86o7ABRDsJnsjVVQwhLO72yiY+Adty50yI5Hm4Uq7/JXw0yJ K65JrHodaDWF8gm/O6cAGACE6emZ/AgAfuL54BzFkeX/mezCE1XuTlTTSwQAqfrHZeKoUb afo7LTedFug/8WIKQ6SlxGqX/uyFr13kK33C2/BOv+LHvgdNv2LXgMWIylzaQ813fkNA9N NbJWT2TVYDNWdegdgN49nWfe3YClmaT1RCxW5Bu1iEOQCrJSkDULEjL8MU7AGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657144288; a=rsa-sha256; cv=none; b=LmuWzUPDRLHaulxgH28TgabEn96eh5Mtpx2MgUKRVpBu+9npqY36fqgw5YoThsYJ5s6h7H 6KxjibHINrnLcJ1wE9+6Plcn059A+JNLqliHP0U94pyyOjj4T7bAZXi+5XvCYR80UIrzti 60/RjiZ/QBl9ImD/qFRtOfsn+awSFYD+0xkr/0pDyvGTzkcepyqZhivNUj7xOtSbRW1gd9 4BKNlVZi9GhPv44VxE1gp4/DIdfHeLfYZkxzZcSIDY5bR25ynb4E1kZhrg0SGLrTTqiDpU OaQ/ru/cH215zl23jdrEWDpKdPfteA+rDY/1cGsrbMWgJQxFqT28D170/+hJCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RbdGDSRp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RbdGDSRp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AF7533EFBC X-Spam-Score: -3.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: V7TtlXTxNoYQ --0000000000007b2f1e05e328f224 Content-Type: text/plain; charset="UTF-8" * 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 --0000000000007b2f1e05e328f224 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

* ob-core.el (org-babel-remove-temporary-stable-direct= ory): This
function was failing when `org-babel-temporary-stable-directo= ry' was
nil.=C2=A0 This variable is nil when initialised.=C2=A0 The = function
now checks that the variable is non-nil before attempting to ca= ll
`file-exists-p`.
TINYCHANGE
---
=C2=A0lisp/ob-core.el | 1 +<= br>=C2=A01 file changed, 1 insertion(+)

diff --git a/lisp/ob-core.el= b/lisp/ob-core.el
index 6c379c121..d4a50734d 100644
--- a/lisp/ob-co= re.el
+++ b/lisp/ob-core.el
@@ -3265,6 +3265,7 @@ constructed like th= e following: PREFIXDATAhashSUFFIX."
=C2=A0(defun org-babel-remove-t= emporary-stable-directory ()
=C2=A0 =C2=A0"Remove `org-babel-tempor= ary-stable-directory' and on Emacs shutdown."
=C2=A0 =C2=A0(whe= n (and (boundp 'org-babel-temporary-stable-directory)
+ =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-babel-temporary-stable-directory
=C2= =A0 =C2=A0 =C2=A0 (file-exists-p org-babel-temporary-stable-directory))=C2=A0 =C2=A0 =C2=A0(let ((org-babel-temporary-directory
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-babel-temporary-stable-directory))
-- 2.34.0


--0000000000007b2f1e05e328f224--