From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4N96BqjHxGIAHAEAbAwnHQ (envelope-from ) for ; Wed, 06 Jul 2022 01:22:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YCtkBqjHxGKNRAAAauVa8A (envelope-from ) for ; Wed, 06 Jul 2022 01:22:16 +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 A889A9049 for ; Wed, 6 Jul 2022 01:22:15 +0200 (CEST) Received: from localhost ([::1]:44338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8rry-0005nk-5O for larch@yhetil.org; Tue, 05 Jul 2022 19:22:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8rqh-0005nZ-St for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 19:20:56 -0400 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:38468) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8rqg-0005yl-Am for emacs-orgmode@gnu.org; Tue, 05 Jul 2022 19:20:55 -0400 Received: by mail-qt1-x82b.google.com with SMTP id q16so16029998qtn.5 for ; Tue, 05 Jul 2022 16:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=hCpoygmixPnOsIq/vc9LJmyPdzDOyFwOh+PF2B3uTEo=; b=E8+xI/XAEPPgSTHGN/RVyh4EGfI9tepAXgYSrU8JgubIBXrAOmNi2l63zp6mV42vqN reIvPBBrVWHTA7GNm3nXFZqA0VuO/1l1EFvla8KedouTCRtt7EeOyxIPilqG4/YNKQmd YGjDycEyLYEoSutsO8A58jaH6UvafXDbLenrfLA5S4jiQolf2WcnVvgjVftjR5bnUxfk vJZlOucBvjG3sVTTmMHCJtkHf9BrBjPZXasLMAE0kdFAayPCFeLe5GxFy+Z3NKvlwby3 XD16KlgtLFRhfumWZUujH7Kdmono2nNEHLZl0htiza/FWB93/noUpwV70htgK5dhihEY i+Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=hCpoygmixPnOsIq/vc9LJmyPdzDOyFwOh+PF2B3uTEo=; b=LBEBV4EHmL3eS1zLFfaTMAidP6XanME2pEMh/8Qk/wrxFsJjSUsYc2mhVEVSnBHBvH RpR89htUPhQ3Bh+2WY/4BTvJu4urDwj8hEVQ2NIiV/KO23boZ1AQF8dGcm3sH95Weecg tnIQR4nQWW1KlIszwoM0Jb8n3LxO9LExFHE426+Piq0A3tB68vxj7Z83x0zrV576CAef GgQPzjOazsHeLRgp65TewJ6db+6+Qp1ByWkOvCgQco+NIJaIwlR2m72+7IlFGzImJ/2H 3Q42jSNgcPU4uNpY7o9SVY6W4sogJ90Sxuyj2W87Ss5lVyWwQAUiJgtCHqI+sWQ7zPaO YfHA== X-Gm-Message-State: AJIora8XZMlYnvZ85cAunj4ACHyZGXSvD5V1bDOZoPir12fF9gMj2rm6 Sz72yatKM/eYZqWvp2bxdwciJhGrfd0= X-Google-Smtp-Source: AGRyM1saWvuvG1Q9caZ+XhbzPellqiep5YQnAWFsIe+Kq2yKc5EIYru+ttjeLkuuSNQbXEFm0eMiIA== X-Received: by 2002:ac8:7f0c:0:b0:317:c8f9:bed with SMTP id f12-20020ac87f0c000000b00317c8f90bedmr29986413qtk.448.1657063251953; Tue, 05 Jul 2022 16:20:51 -0700 (PDT) Received: from nbook ([2601:82:c200:166d:7a0:14e6:e26:75bd]) by smtp.gmail.com with ESMTPSA id j14-20020ac8440e000000b003176b8f948esm22772588qtn.13.2022.07.05.16.20.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 16:20:51 -0700 (PDT) User-agent: mu4e 1.8.5; emacs 29.0.50 From: No Wayman To: emacs-orgmode@gnu.org Subject: [BUG] [PATCH] Ensure org-babel-temporary-stable-directory bound-and-true [9.6 (9.6-g713598 @ /home/n/.emacs.d/elpaca/builds/org/)] Date: Tue, 05 Jul 2022 19:21:01 -0400 Message-ID: <87pmijgn5c.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qt1-x82b.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, 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: , 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=1657063335; h=from:from:sender:sender: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=hCpoygmixPnOsIq/vc9LJmyPdzDOyFwOh+PF2B3uTEo=; b=QD6icVmVu56eljah2RDe3BLgpTnQ8X3axQeo4VqPI5cfPNbklerRpNZ9kNdR6nj5meNmT9 rj5aNeQLd+3J6B62+E9E2QsmZ7fNfzl+vdQ60C4nj8pmxagx5SLcfaqdbucryv+bvxZ+ty X8w3AvyDXHlatRAk2Rzv53HQya9K8+nAc+WAkzaM1v6YyS5VYDqzeNlffHCQbml8U4zwrb AjSPd7jQ2UrhzEVoMK+IlMg5ykXrNhbhLdbhzuW/YwAju2ffYs03Sma1G5y/jyA39tZki8 uCvBTP+TvKjZzZsAE8h2Y8T1xH7nS2JUk1zZVuW1oOvM+iZ8YlUxTOBt+kGOoQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657063335; a=rsa-sha256; cv=none; b=AOIj6bsUbhDpNkzKsKLJLyabNIGP7azl99IiLF6D0k7vEAO8VjtauLlSyoKo+yQfRZeBA+ FhydXzV5Z6FGxbEB3Uw4yEQzP8cKi1iqEmSv6V1Z039Stu5/zy2GPJwfWStk7FW0qVuIRS 804n07MS24tjjRNBkPnbkZgxM81QiIRRJc+rt7mQByKIH0gV8QxMQKAtC/DOmpDIRj0teo EIOIPtXE4pMm4sOgsnO8YVB5gtU0XhAi7KhEaFJtBUfwqZXUabL6tyqwCRSjd+LfZnpLDw VM57Y/ya2jpnyPQqi1hj3YVubwR53KNtlFCV3/JvJhqG3kMQotmuG7lwTIGdIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="E8+xI/XA"; 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: -8.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="E8+xI/XA"; 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: A889A9049 X-Spam-Score: -8.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: Enxqwm9bf8vx --=-=-= Content-Type: text/plain; format=flowed Updated today and noticed an error when killing Emacs. See attached. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-ob-core.el-fix-file-exists-p-error.patch >From fa822d45559267de6af31f9d34be4266af602d03 Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Tue, 5 Jul 2022 19:03:44 -0400 Subject: [PATCH] lisp/ob-core.el: fix file-exists-p error * ob-core.el (org-babel-remove-temporary-stable-directory): Ensure org-babel-temporary-stable-directory is non-nil before checking if it is on disk. Otherwise an error is thrown during kill-emacs-hook. --- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 6c379c121..22175a911 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -3264,7 +3264,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) + (when (and (bound-and-true-p 'org-babel-temporary-stable-directory) (file-exists-p org-babel-temporary-stable-directory)) (let ((org-babel-temporary-directory org-babel-temporary-stable-directory)) -- 2.37.0 --=-=-=--