From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 WCTpDcSUWmf7FAAAqHPOHw:P1 (envelope-from ) for ; Thu, 12 Dec 2024 07:46:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WCTpDcSUWmf7FAAAqHPOHw (envelope-from ) for ; Thu, 12 Dec 2024 08:46:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=thibaut.dev header.s=purelymail3 header.b=EW6h7sVT; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=s9cBTkL1; 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=1733989572; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sz1ZI+s2iJk8nmvg67zvQoNpBQaArAQLR71xxC/HMyE=; b=dhJZNcz4E13DlaUAQ11PRN7xaroUiQ5rTYVnhvgw0NzqfDOEB4GmXYnx5abxh1oI3Yb1Jy gYviNxu/c/II28syw3viyCKlf7+z2NYaOsB6QDlimGmb6ttqfBegXxmMtEgjOvQ2ljNs7o 4/iDqsa4SpsSDwLHdR1+5SHVZpbxd0FfCq6RIgRYiBGJd5FwgfVBRVh3ATtTWrPu77m9qS S/RQqyAfeub7huCUfuaG05SsMdsnQ/ClkSyNIKwttM4V+FzP3+kMVrzA/37dXpvrLIiYgf 0ad1OHiKg9oXhw9Q4HkONrpSXY4heJUoQnp8jBcEP0F49v1JqSleBKkyL0Pphw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=thibaut.dev header.s=purelymail3 header.b=EW6h7sVT; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=s9cBTkL1; 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=1733989572; a=rsa-sha256; cv=none; b=JUwh2gVeWvATVuGFM1P9Lu54U++XaiVbwUZho+eUd39Z4CP6eeu6/MZCoGvAlAQCIjtsxU h7xSd1SsFY61YBQxPcPHAePwEAjNfU8CXDdnJ7fjYsDPjb0a/nhj+35JXdakCkVsb563/A si0smEhO1/4A53DNvmbbYyhhOghePeMmiQy7Ts0PqAclqTP6vzTnNvYmR8s0LqZaFFe+KT 0Tbw6cEqsgZdqxDOgREdncsZYb7gp0QDQSzAskxiBR+PFCW9yDFGHhCegTgS0QamXp7aSi 0hHmjxqQL1iosHV/ZSunj26Ar/+dgNNIJpAbuapAbE2QEjhALvMgilseAvuYPQ== 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 1CCDD426FA for ; Thu, 12 Dec 2024 08:46:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLdst-0006mO-Cp; Thu, 12 Dec 2024 02:45:19 -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 1tLdsm-0006jL-Nh for emacs-orgmode@gnu.org; Thu, 12 Dec 2024 02:45:14 -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 1tLdsk-00079W-0i for emacs-orgmode@gnu.org; Thu, 12 Dec 2024 02:45:12 -0500 DKIM-Signature: a=rsa-sha256; b=EW6h7sVTGDqNerknrSlpKOPRVwVzhK1EqRBIidnPt4Rfe9LoN112emC8TtLgbOy1DRDLPqe26QeX/vS5sQjWFH8fuAvJkvujwR9uFu//l5j8zjfdVVbHsz3G4sq13MRVN4r85SGtcLJwWoNoZuKt+xAv8hc5nLyGP0RmnwApZDVlhNqiRjoGnxISsRDTY334kkA6FRR46WIbtuoOfXShUgz/kt3h9O+DkAPsCY5RKMvdQ9IJFbGfkY/N7aNZCpRRm9o8Igibukhr3327MSluBNX3gTJHdaKn6+5H/UUV27g1nrb7+aF0DCC2hqISboK2/x/Xg+HKpXZucjyLHTSk+w==; s=purelymail3; d=thibaut.dev; v=1; bh=PDB8cHU/pJ2zdjSlXGbjBY4bXyprUJUWGSe7WGof6CY=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=s9cBTkL1jOu537F/EsWcCHlbakUXUaGeihgILXzM5AYQ27uFsyiYoRkHql7f/+w7kpGbFgyO/R6FHEAgjiXv0DpOeKJsQNKuLDFeU5eNbkDKqma22wg5rmxpK6QchRykJDrztcBLQmwsXmhXivs2Fn6sXfgaCipaBbeHtBvjNIkNEQ05gWdFTS2M2uZEMGl61aXO5jhjDgd/RC8ZYC5Gn6vfLlK3F4LghRKxpWAAS0zZIEDz6rdwxzz/Oqxi/QLNU+OQsg1q7WHEE3MCww22dN1HoOGJEyBc13sGAIvoPH3J2ljKGWpEMf25h4ixLu8MldEo3BgEIYOND0eL7OP5Bg==; s=purelymail3; d=purelymail.com; v=1; bh=PDB8cHU/pJ2zdjSlXGbjBY4bXyprUJUWGSe7WGof6CY=; 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 -663851603 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 12 Dec 2024 07:45:05 +0000 (UTC) To: emacs-orgmode@gnu.org Subject: [BUG] Inconsistent org-babel tangle behaviour User-Agent: mu4e 1.12.7; emacs 29.4 Date: Thu, 12 Dec 2024 08:45:01 +0100 Message-ID: <87v7vpgxaa.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -2.67 X-Spam-Score: -2.67 X-Migadu-Queue-Id: 1CCDD426FA X-TUID: qVRkQmwWB4LL Hi everyone, setting a property in an org file like '#+PROPERTY: header-args :tangle "file.ext"' with a source block of the form: (note no language is specified for the block) #+begin_src <1: this block won't get tangled> #+end_src won't tangle the block Adding any string as a language to the code block, like #+begin_src random_string <2: this block will get tangled> #+end_src tangles the code block what's weirder is, just adding to a block the ":tangle" header without or with any value, even with the value no, makes the tangling process respect the header-args property value and thus the block will tangle successfully. (note no language is specified for the block) #+begin_src :tangle no <3: this block will get tangled!!> #+end_src Adding again a language value make the tangle header act normally #+begin_src C :tangle no <4: this block won't get tangled> #+end_src The behaviour doesn't seem super consistent. Ideally, I think having a source block like the first one gettin tangled would be good, and having the third one not tangle would be better as well. The documentation states: [Working with source code > Structure of Code Blocks] "When =E2=80=98=E2=80=99 identifier is omitted, the block also ca= nnot 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. I tested using org-mode pulled from the repo "GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo = version 1.18.2)" "Org mode version 9.8-pre (release_9.7.16-174-gb9637e @ /home/thibaut/tmp/o= rg-mode/lisp/)" Cheers