From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: wrong type argument with latest org and latest emacs Date: Tue, 05 Jul 2022 21:04:09 +0800 Message-ID: <87czejn22e.fsf@localhost> References: <87sfnfhm6v.fsf@yandex.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38795"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org To: m43cap@yandex.com Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Tue Jul 05 15:04:01 2022 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8iDh-0009sE-Ac for geo-emacs-orgmode@m.gmane-mx.org; Tue, 05 Jul 2022 15:04:01 +0200 Original-Received: from localhost ([::1]:58418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8iDg-0004bm-1Z for geo-emacs-orgmode@m.gmane-mx.org; Tue, 05 Jul 2022 09:04:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8iCn-0004Xx-BH; Tue, 05 Jul 2022 09:03:05 -0400 Original-Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:43573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8iCl-0006Jx-Dr; Tue, 05 Jul 2022 09:03:05 -0400 Original-Received: by mail-pg1-x536.google.com with SMTP id j184so690228pge.10; Tue, 05 Jul 2022 06:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=riM3mu3+vt8hqS+xhEwXXfxUwlhfCw2Ct8JM2pwIsOQ=; b=Mre6ef1aQCxpJiFzzRHP0GolF7t4LdkGAFDM10w/zlmvQIEU581VsKpEtbW4ah974I TJ7qGyAkhxEygItRshWmgmz8F7vMCsG+WpI2mneYYgyqEnxiq6sd6iGoKo7QlsEifcWf LiVev/WxtxNBI1gy4zR/RNunRP4yHm8ElXdbTPBpSvBPrjk2LBa7+MKMDjuMRU/Ceq4v HtmVNLZyHHmbAaVnJvvBFi6nDMFtsXd99rBYNvOL86UswdKGzTK0W0lMp/X+YjaYpECu UFO5DZU8oWcGB3+X+O3RfhrXsEk/r8AHhI94v5CxMC9KpjK8VQOyNtQj8j4KxBMPVJKg bABQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=riM3mu3+vt8hqS+xhEwXXfxUwlhfCw2Ct8JM2pwIsOQ=; b=FrbmUea5vqIeCMaM1PwAq+qbGdkBe7HVXJAHDHV6xCBHtFqD2d8/EP5yyJde/HZo3p 0vStE+14sdfEZow+TgcNpKLDB50F9/jvS32q0nw9jxDDxgXhB6OjimQpoPkltj/kEhic TM6RmOC+27qa43GtEdELNMGFidXMWit+tU2J8CAiodLdkgnAuPB20FnmtdCulRMHoLWd rxJlZIlqy39St1mIdHQch/DSs6InDJw7Q1mtRXXgTfTQ7iEKAbI0OY1aBMNrdk8aS3Ia vsVgNsxvMDaLXahTVmtro16rgZr11TbCj3SqMNEZFRY0zXLGMRWbSed37z3iVZEF1Gxo 0VIA== X-Gm-Message-State: AJIora/+ZpToLo23+lXFulQOrqyKxX17kAVtzGWsU9aAgcmONqmSVstg fPkDK+sBjAiWFfV1c1BfBzB3lTeJF54O5A== X-Google-Smtp-Source: AGRyM1v3MpNQgQEf81BRL3cz09S3N/6cK5SHtqRqk7+jk3ywuTb8kUnyubljpRCgtATIrtcCpUNb5g== X-Received: by 2002:a05:6a00:2292:b0:525:6c57:8dd5 with SMTP id f18-20020a056a00229200b005256c578dd5mr41208047pfe.17.1657026181360; Tue, 05 Jul 2022 06:03:01 -0700 (PDT) Original-Received: from localhost ([128.14.140.248]) by smtp.gmail.com with ESMTPSA id h12-20020a170902680c00b0016bee3caabesm2469061plk.270.2022.07.05.06.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 06:03:00 -0700 (PDT) In-Reply-To: <87sfnfhm6v.fsf@yandex.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=yantar92@gmail.com; helo=mail-pg1-x536.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:146779 gmane.emacs.devel:291861 Archived-At: --=-=-= Content-Type: text/plain Colin Baxter writes: > I'm sending this to emacs.orgmode and emacs.devel lists. > > With the latest emacs: > > > Debugger entered--Lisp error: (wrong-type-argument stringp (wrong-type-argument stringp nil)) > format-message((wrong-type-argument stringp nil)) > apply(format-message (wrong-type-argument stringp nil)) > error((wrong-type-argument stringp nil)) > #f(compiled-function (fun) #)(org-babel-remove-temporary-stable-directory) > run-hook-wrapped(#f(compiled-function (fun) #) org-babel-remove-temporary-stable-directory) Thanks for reporting! This likely caused by recent commit of mine on systems with no write access to remote directory (at least, I am unable to reproduce the steps on my system). Can you please try the attached patch? Best, Ihor --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-ob-core-Fix-nil-value-of-org-babel-temporary-stable-.patch >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 --=-=-=--