From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6BRHDO0FcGe4UwEA62LTzQ:P1 (envelope-from ) for ; Sat, 28 Dec 2024 14:06:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6BRHDO0FcGe4UwEA62LTzQ (envelope-from ) for ; Sat, 28 Dec 2024 15:06:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=thibaut.dev header.s=purelymail2 header.b=PDNhw6oY; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=NRb9uZ9V; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735394797; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kBys8GYmiemqOrlP0v7CefQf/3HbLmBuUeqOiGm8bSY=; b=k15vdzsh4dgV3eHgbanaTThN4Brxt/9obD81vupWoOgRbSkAmhl9E5Epvn//UFFPJBOqXS KhTAG+2HylZzOgfvY3zZV4PSQsPFr2zVCGF1TZOzDVD3G9e1aHdeYP+iHixg4VnA1Mn80m iuKZBQb18rBlS9mqj9bnXmSayjNNrtKci4UdUSV7R7n5wYTGM3O3gT5X0E/OW2xV9Zd6iz bx5XTrQ1NBW/whR4Oddo6LdLG6YI4mXLv/5X0jiQb1Tvb58cHg/946Yu/9SkwNxqWUOQN7 t7x9Yiu9ftZuNL7R6te4WU/KgaUOa+/cp8jpGuE35bFGARhTc7mopWFr1SdGtA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=thibaut.dev header.s=purelymail2 header.b=PDNhw6oY; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=NRb9uZ9V; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735394797; a=rsa-sha256; cv=none; b=ENy/Rwj76R9154P5m+n+F4ewRFo/NhAJvbX3bUFgrzCoRymVL9x+FKWLQ3SMRGO+j0sq7L dLaX0LmZ8uc5GVV/1klBeVo60ysWW+JZfPlBRrx3yi0clCPq2KvsbW7hUDqatgnDWNdvC9 cDQMe+zu/+XTTCh+Kq2lBNAjx3AE56zK41TR3hMtDjRc6cNIu7s7uApVmMcB1g+rQE834Y X4gTxnRA8/wB+0jE7thd+CUAP9l9zvF0hF5+VXH8RPcCUuvmnxLn0hC+P+xBhardFClcUc plMh1JIdVzgWd3KOoQK//ZCkKd3n1t8xWNKiSUnOGTpxVvT5fu+hTHUdb9ZpCg== 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 EEFBD34B2D for ; Sat, 28 Dec 2024 15:06:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRXAy-0007eJ-Ke; Sat, 28 Dec 2024 08:48:20 -0500 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 1tRXAw-0007dk-7C for emacs-orgmode@gnu.org; Sat, 28 Dec 2024 08:48:18 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRXAu-0003y7-IX for emacs-orgmode@gnu.org; Sat, 28 Dec 2024 08:48:17 -0500 DKIM-Signature: a=rsa-sha256; b=PDNhw6oYtT0B7j5TTtBDh6oUKHXk5mhO90CORzvRghDuWJQBv7iR0NLabywbeTL+7bPf7VdgX79QnCBEFD1841F5B3Ip93cG8OjokJ1/+RsbM9V/ydvu0S+TlR1L9Kmc3Pi0w9yrAWlXmwmSeano0+cgXPOhI+oWuIdgJyRFkpUb4b++6ORVgVHJPTzCyQlexlP30ZrGH7wST3ZVU9Zj88pj93OsfsDMQmFNfXbxQQa7TlmFxHEipGKs09V64spGTJctwMOkd+1sm9Q9YGHz5VEPaHaFG7HmC8UUmLfN8O/SPaUhN6bA4Pn1XQxRHNyFcMPXTBBsXDmGkX4dvMimEA==; s=purelymail2; d=thibaut.dev; v=1; bh=7T5GYmMZKz1nutbt3+9vZa68tdKIIECqBTK/PWnYcG0=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=NRb9uZ9VjdwO8JV1f++YTs2L8NjTjJkS6eK9w7j0fT85l5805o8sCvjDuyLReYOClNM+su5296XFPYVJRzkltnnSDqgx4a3UIBW9oAE9SBJvLZmAjwidS7ekk2nPGsVeaon7L6iSQWSq1KlpBz3Tec6XQBECob0EINWE2sjv4jnKeu6IX7cMAwzh49vxVjt96aWUxk9NbHe0h8xplEoJ6tRI1b42rBc9zWtwSukke6EFfhJe73Og5sO+J64wgtF78eHW2Cju0/kTO+Ry8UnjvM3VZCEs5OhS0Dw0AcMnjsf3rNpiBlhN6D8Zb+7J8dStFZm/E3A0TDjutBQYSDMCaw==; s=purelymail2; d=purelymail.com; v=1; bh=7T5GYmMZKz1nutbt3+9vZa68tdKIIECqBTK/PWnYcG0=; h=Feedback-ID:Received:From:To:Subject:Date; Feedback-ID: 12196:2647:null:purelymail X-Pm-Original-To: emacs-orgmode@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1180153515; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 28 Dec 2024 13:48:11 +0000 (UTC) To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Inconsistent org-babel tangle behaviour In-Reply-To: <87ikrb99n1.fsf@localhost> (Ihor Radchenko's message of "Sun, 22 Dec 2024 12:37:06 +0000") References: <87v7vpgxaa.fsf@thibaut.dev> <87ikrb99n1.fsf@localhost> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Sat, 28 Dec 2024 14:48:07 +0100 Message-ID: <87frm7kjfs.fsf@thibaut.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=34.202.193.197; envelope-from=thibaut@thibaut.dev; helo=sendmail.purelymail.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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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: , Reply-to: Thibaut Meyer From: Thibaut Meyer via "General discussions about Org-mode." 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-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.70 X-Spam-Score: -3.70 X-Migadu-Queue-Id: EEFBD34B2D X-TUID: H+vDDgn2UCF+ > Here, a language is actually specified. The language is ":tangle" (there > is nothing stopping anyone from creating a language name starting from > colon). I see. I just assumed that header arguments and switches were "recognized" and not considered as the language if placed positionally first. > Src block without language could indeed be tangled in your case. That would be indeed nice... > However, if the :tangle value is set to something like "yes", there is > no way or can deduce the tangle file name. .. but I guess that this prevents us from supporting this use case. > Usually, you can simply use "conf" or "text" language name as a > placeholder. It's true that once you know the behaviour, it's not that big of a deal to do so. >> The documentation states: >> [Working with source code > Structure of Code Blocks] >> "When =E2=80=98=E2=80=99 identifier is omitted, the block also= cannot have >> =E2=80=98=E2=80=99 and =E2=80=98
=E2=80=99." >> >> but, to my knowledge, there is no mention regarding the fact that the >> headers assigned through the "header-args" property should not be >> applied if a block has no language identifier. > > That part of the manual can be improved. Maybe something like below. > > When =3D=3D identifier is omitted, the block also should not > have =3D=3D and =3D
=3D. Otherwise, the fir= st > switch/argument will be treated as =3D=3D. > > Let me know if it clarifies things. It does clarify things. In addition, I think that a small mention of that "quirk" in the "Extracting Source Code" part of the manual would also be in order. I'll send a patch shortly. Thibaut