From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IPAfIPeuf2YYYwAA62LTzQ:P1 (envelope-from ) for ; Sat, 29 Jun 2024 06:51:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IPAfIPeuf2YYYwAA62LTzQ (envelope-from ) for ; Sat, 29 Jun 2024 08:51:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UWeWsxH+; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719643895; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3AG2VL+cBhykPP1sQMwRIZN1e8uIjPttoZqLuHgf5Ys=; b=B9Fbgo3tob/Ku4evVR9raQ0UBPxeii9ivqgl/sshxKyP5tUj5Ae2p7vVV/HrZ2WT3f+m1R J/hut/YU7ZQm3zk/waveXo1jtrankXExAJJY7JqHd2UHB1DkOJA2w3XAPXED8HP2V24tc9 F2qAH6PiB4/FzMSZlnDn80S3sNJcCEJC4MKpTJ4Mzi0batw8+SuD44NRyzyszcoCM2/0Vj f+D7OWobLFeQAldin0PGYFln9gXsxjFK96AU84cPWeHxJmAAO1Zol1KA51U5XSaXmjUj+8 3NxDa/BgSddfqNVCwuxC03eEHB9CrsvDDb3SrwIcR6h1f1Vw/KuzHcMiQrFHaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719643895; a=rsa-sha256; cv=none; b=eDmea65TnESG9v+qnPvX+QEkDLhwy1enxsXDVGAhI+CyPFKPHenDnk0AyEfB0q16M0K4T9 fY2lgQES3U91GsHo0SU7RFxp9ZbDlFUc/5GhY+epi6fIuJ785g+5Ffxzrc9OHWchNd7jTo tElAOkB4MlmTPuRvgBkx6psCPTwA+ILQI1tt8Skkeu8ZUtanUMAMRdUgZjLw4jLjCMx28i TuZnWCreZArvS+jpvfIF+HMmcx+aQmEmyb/5T7xFoNGlGWxJ6ZbCBcESQldjdIaknvCDWm ADERvBa/lb4IK0r/THBiv0nHwP2c1TE1lXBzj4YnP81qnjg+kaXRb2rSqeMR2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UWeWsxH+; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 0DC38B6F0 for ; Sat, 29 Jun 2024 08:51:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNRuz-0001hy-56; Sat, 29 Jun 2024 02:50:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNRuv-0001hJ-6l for emacs-orgmode@gnu.org; Sat, 29 Jun 2024 02:50:37 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNRuj-00081H-9l for emacs-orgmode@gnu.org; Sat, 29 Jun 2024 02:50:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9404A240101 for ; Sat, 29 Jun 2024 08:50:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719643820; bh=KLGg/sU4kaZkQ1zaGpOr4dspixA/U2csO1uhz7P+RzI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=UWeWsxH+s1KOQQHE3MuXZ2ZzMX8F74E9oYzOb/QtUwD+3TXlKObeFiy6/uRbSWa3i vD+weT0M+DaTHhkPNY/Wq3ll19vkaCurYWpwtOlHPfZupM80KzhktmN0u2H0rJaC1+ yrP4x1ORGnxighk/u15rfpqBhra6EBF73be1kMKagKp1XN9S3aclF2O+KsGEkFVGl2 /6GbZbBEqCb7bw+BpAelI9jhqVmQR9Q99xa/dFbFRciLJfgr9Qj6pWFSx4vXu0fadD sx3rMDnGQQyGItyAkBs14CvRDt76Nm0roBvRhQIrAXvjp1VwW0OGboJfWrkn/uGrFM 3IwMYhQSLOWsw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WB2xQ5Qrbz6tvx; Sat, 29 Jun 2024 08:50:18 +0200 (CEST) From: Ihor Radchenko To: Tom Gillespie Cc: emacs-orgmode Subject: Re: [PATCH] initialize org-babel-tangle-lang-exts to nil In-Reply-To: References: Date: Sat, 29 Jun 2024 06:51:52 +0000 Message-ID: <87wmm86y2f.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.60 X-Spam-Score: -6.60 X-Migadu-Queue-Id: 0DC38B6F0 X-Migadu-Scanner: mx11.migadu.com X-TUID: bpqFASVCuGG1 Tom Gillespie writes: > Here is a fix for bad init values for org-babel-tangle-lang-exts. > Details in the patch commit message. > ... > Subject: [PATCH] initialize org-babel-tangle-lang-exts to nil > ... > org-bable-tangle-lang-exts should be initialized to nil and not as a > void variable, if it is not already initialized then this will cause a > void-variable error immediately when it is used in add-to-list > > this corrects the original addition in > 4a0e5cf88f684db775ccf43dc5edc2e8754a2d92 as well as other files that > followed the pattern Thanks for the patch, but it is not a correct way to fix the problem. `org-babel-tangle-lang-exts' is a custom option defined in ob-tangle.el. If you define it as a global variable separately, there will be subtle bugs depending on the order of loading of ob-tangle and the other files defining the same variable. Currently, it is expected that babel backends *must* be loaded after ob-tangle. More accurate approach would be using (eval-after-load 'ob-tangle ...). This is what is being done in WIP branch that addresses many similar problems across Org mode: https://git.sr.ht/~yantar92/org-mode/log/feature/refactor-deps-v2 https://git.sr.ht/~yantar92/org-mode/commit/6bcb99413e18324367fa27f8572955d5a92092ce Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at