From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alain.Cochard@unistra.fr Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: wrong type argument with latest org and [not] latest emacs Date: Thu, 7 Jul 2022 11:20:28 +0200 Message-ID: <25286.42332.593427.484898@gargle.gargle.HOWL> References: <87sfnfhm6v.fsf@yandex.com> <87czejn22e.fsf@localhost> <87o7y3h2ia.fsf@yandex.com> <87let71hy0.fsf@yandex.com> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5825"; 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 Thu Jul 07 11:21:45 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 1o9Nhg-0001L9-IJ for geo-emacs-orgmode@m.gmane-mx.org; Thu, 07 Jul 2022 11:21:44 +0200 Original-Received: from localhost ([::1]:53546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Nhf-0004Hm-DR for geo-emacs-orgmode@m.gmane-mx.org; Thu, 07 Jul 2022 05:21:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9Nh5-0004HA-1K; Thu, 07 Jul 2022 05:21:07 -0400 Original-Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]:50102) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Ngz-0004Y7-SM; Thu, 07 Jul 2022 05:21:06 -0400 Original-Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr [194.254.241.25]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 2D129BFF00; Thu, 7 Jul 2022 11:20:51 +0200 (CEST) Original-Received: from zmtaauth02.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPS id 2F082A007B; Thu, 7 Jul 2022 11:20:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTP id 1B8E2A0084; Thu, 7 Jul 2022 11:20:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr 1B8E2A0084 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1657185629; bh=O1C/G8iDt4MkKJ4F8WCFKfIISYFnkDlVK4uWzddw2uc=; h=MIME-Version:Message-ID:Date:From:To; b=nQwUpo2odJC3eMnv4NiATtpuj7GddwkIeCB/sy8KeLAoo1t0v/qhbjPYQvTtwmC/J KC3TPBaHpid2YveXtE6QzXzztpeqJGqJJqh/D2F4fI6mEygdEso1fZ5FHTqZZfDRmJ 8t22Iz8A3FarCG2egjKQoJFqbhcreUBLcllL1jRr4BduRCrnX/jlBiARoY0k1wOHZZ UN0lcpoW/dILZPgYIMdAXfLUArLobyX3AFS8Oi17kiSrMKSbDGMvI0XrYy3my/ImFT GBgmi7QSMOw+d8HHUHim9FWha8MOWGlmV/JvKoeKZBl7ejxU0BjPK5bhWxcOkRHxvu ag7F4tAnvZyhg== X-Virus-Scanned: amavisd-new at zmtaauth02.partage.renater.fr Original-Received: from zmtaauth02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth02.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mJohkZ0Y-ZsQ; Thu, 7 Jul 2022 11:20:29 +0200 (CEST) Original-Received: from 130.79.11.24 (unknown [194.254.241.250]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id CE644A007B; Thu, 7 Jul 2022 11:20:28 +0200 (CEST) In-Reply-To: <87let71hy0.fsf@yandex.com> X-Mailer: VM 8.2.0b under 27.2 (x86_64-redhat-linux-gnu) X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeihedgudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucenucfjughrpeggtgfgkfffhffvvefujghfofhrsehtqhertdertddunecuhfhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhenucggtffrrghtthgvrhhnpefgkeeikeeivefgtdegffefhfehffegiedvjeevieegvdetleefjedvjeefkedtudenucffohhmrghinhephihhvghtihhlrdhorhhgnecukfhppeduleegrddvheegrddvgedurddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdehtddphhgvlhhopedufedtrdejledruddurddvgedpmhgrihhlfhhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhdpnhgspghrtghpthhtohepfedprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhgpdhrtghpthhtohepvghmrggtshdqohhrghhmohguvgesghhnuhdrohhrghdprhgtphhtthhopehmgeeftggrph eshigrnhguvgigrdgtohhm Received-SPF: pass client-ip=194.254.241.31; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout02-ext4.partage.renater.fr X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, NICE_REPLY_A=-0.001, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:146826 gmane.emacs.devel:291919 Archived-At: Colin Baxter writes on Tue 5 Jul 2022 20:24: > >>>>> Colin Baxter writes: >=20 > >>>>> Ihor Radchenko writes: > >> Colin Baxter writes: > >>> I'm sending this to emacs.orgmode and emacs.devel lists. > >>>=20 > >>> With the latest emacs: > >>>=20 > >>>=20 > >>> 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-functio= n > >>> (fun) # -0x1724f6e> )(org-babel-remove-temporary-stable-directory) > >>> run-hook-wrapped(#f(compiled-function (fun) # -0x1724f6e> ) org-babel-remove-temporary-stable-directory) >=20 > >> 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). >=20 > >> Can you please try the attached patch=3F >=20 > >> Best, Ihor >=20 > >> From ddf6278e8fcbaa4939539277b111061b7c00f550 Mon Sep 17 00:0= 0:00 > >> 2001 Message-Id: > >> > >> From: Ihor Radchenko Date: Tue, 5 Jul 20= 22 > >> 21:00:24 +0800 Subject: [PATCH] ob-core: Fix nil value of > >> `org-babel-temporary-stable-directory' >=20 > >> * 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. >=20 > >> Fixes https://yhetil.org/emacs-devel/87sfnfhm6v.fsf@yandex.co= m > >> --- lisp/ob-core.el | 3 ++- 1 file changed, 2 insertions(+), = 1 > >> deletion(-) >=20 > >> 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 Ema= cs > >> shutdown.")) -- 2.35.1 >=20 > > Ok, that patch seems to solve the issue. I have applied the pa= tch > > and I now get now error message when I close down emacs-29.0.5= 0. >=20 > Typo! That's no error, not now error. So it is not the latest emacs GNU Emacs 27.2 (build 1, x86=5F64-redhat-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-07 but it seems related. I have no problem with=20 Org mode version 9.5.4 (9.5.4-ge0b05b @ /home/cochard/.emacs.d/elpa/org-9.5.4/) but if I use what I believe to be the latest org from git (pulled a few minutes ago): Org mode version 9.5.4 (release=5F9.5.4-609-g713598 @ /home/cochard/Org/Coch-git/org-mode/lisp/) upon 'C-x C-c', I get org-babel-remove-temporary-stable-directory: Wrong type argument: stringp, nil and emacs does not even close. I cannot kill it either with 'C-c' on the terminal from which I started emacs. I have to 'kill -9 ' --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | [ slot available for rent ]