From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +DRDOmc5TGaiRgEAA41jLg (envelope-from ) for ; Tue, 21 May 2024 08:04:24 +0200 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 0JgAN2c5TGZCYwAA62LTzQ (envelope-from ) for ; Tue, 21 May 2024 08:04:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=blackmesatech.com header.s=dreamhost header.b=kZtVBiQw; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); 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-Seal: i=2; s=key1; d=yhetil.org; t=1716271463; a=rsa-sha256; cv=fail; b=PHj27n9cz+HIGpxhgAAIlNEHkWf7waXWHMY8rFbW8cxMJDJ1RSCS9q9AYyy6fr2VBr/4Bc UYmwSPIvuLaawPmrk1QMik00xuEpDy8NN352/wTRYJKHMJxUkGoUj+Lp+dwcL0+JAmn251 SdAtrODIR8COwwIBZgkaETdqbUiNeNbB1r9lVAVhPXvyMayZEJjN4DiROLN/0S+AYygYG9 TLnWADXfPsH1T+GaAXby2KSRjhz6ZWk2LUXeuH4fwGasDpRJ321i9yB/kJQAhQQfrWiHeM 1Pii3RB6gK9PDK4joDKcy8dJHV93iZJBxarzhXp9g5i3160+xwzzz2pjsVmw+w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=blackmesatech.com header.s=dreamhost header.b=kZtVBiQw; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716271463; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LUn0p/y3FA2+IresTl+b/kTlNETle09546TUwTy655U=; b=Ki3IZ2j8fGiJEPJwfTtnERtykZ63FgSbRWBy2JH3WiaOjlPKYNVFDp0ToUcoW+fY45FHDb SLFXAY2gRYG07mfXintDwMXSsynH2BnCVjTJOZfj1baWuekvHeUNawZ6INNKknYDhApRM6 LGjGCC/8legISzjOB/XMGPfzlmyYSrXlCCYdmBuBVO1z5tuQG5xGEN1pVNvOZOFrapaVsg R7n2iQumqeY548QzJ9awk2F2FYeky/bFckEH1jxpxPT3Ujmx4SkThwMMv1p4QELbf6sM8K JLOb/8ZCflszjQpilHhoKIYWKV0a4OcLQgjQ1rWCYkClIMsbQI6B8/fux7gbFg== 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 5BBCE13707 for ; Tue, 21 May 2024 08:04:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9Iak-00014J-AP; Tue, 21 May 2024 02:03:18 -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 1s96P7-0006wh-JB for emacs-orgmode@gnu.org; Mon, 20 May 2024 13:02:31 -0400 Received: from serval.cherry.relay.mailchannels.net ([23.83.223.163]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s96P0-0003lt-B0 for emacs-orgmode@gnu.org; Mon, 20 May 2024 13:02:28 -0400 X-Sender-Id: dreamhost|x-authsender|cmsmcq@blackmesatech.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 69A5341128 for ; Mon, 20 May 2024 17:02:17 +0000 (UTC) Received: from pdx1-sub0-mail-a314.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C54834245C for ; Mon, 20 May 2024 17:02:16 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1716224536; a=rsa-sha256; cv=none; b=Ot1g22qZfGBpbpVTDgH6aQ/4xWBCHY9Vv9cmbLZvC+0Hcdl0gIN2t3MIXssrdmvmqDoqmf FC+Gm0kH3919Zn+OJ5UoOJ1BbZSx1kHiwAeRBdNzkQXdv20ngoq53QlDsVsTRGchRFNG0L PzaZDuXTCIdueZDmYgKhZe6FaHZRyZzhs+FHFYRMe2AvzJ0vWMDsWYf4Y464Bn9qlmVKZu hb0wve6ljKkMNKlCxkNPwaUWwmzqO9wx8Of0Nwraz2kQZYQAefIY/xl33hVPLgGU2vPpxl L0YI0kRMDHpf4uFZ/Jh+WmQcj3sG84F0u9NcJBeNUnOgMEmCAFH5yqidgAl8ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1716224536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=63VG5Oy0tmy1cTxxtpboko3YKIFtz/N0Usp6GS6ncsE=; b=WdFQNk3ghkE4w9P4CqSvBYtCIBoQFt9Wudz3n1zoxkPmMEMl/GoPadsLVcjN305yz66D6A L2tbmVqkT59Tb8PuSqqwiYaLZNvRZuJSMfvHVA7I7Mbxe0fiZSjeG3RlYnQ3zZKjzbJyxS sPZnk31+kaLdA/Y/RZQlcIrOo7AbYxMZt4m/ugXkQ+f8mfYc+JHhdg39rCaJPl3Pg2WEKS V/aDZYHsrUaH6fAnwJgKEKBLHTHbQTDgnwIYayoDDSWmVYu2drJRRAz2E7GnOQ+yqkGiLa V+QNG+4UwlqO12em0F+FZ3wAmI6i1/2VdBPlrWh/kVFkWOcAAjI1Zudbr/MWyw== ARC-Authentication-Results: i=1; rspamd-5d55749bb4-g969f; auth=pass smtp.auth=dreamhost smtp.mailfrom=cmsmcq@blackmesatech.com X-Sender-Id: dreamhost|x-authsender|cmsmcq@blackmesatech.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|cmsmcq@blackmesatech.com X-MailChannels-Auth-Id: dreamhost X-Spill-Scare: 5d82e73c1f36ebfc_1716224537094_69186936 X-MC-Loop-Signature: 1716224537094:3986569468 X-MC-Ingress-Time: 1716224537094 Received: from pdx1-sub0-mail-a314.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.97.253.158 (trex/6.9.2); Mon, 20 May 2024 17:02:17 +0000 Received: from gemma.adelantecaucus.org (h79.217.186.173.dynamic.ip.windstream.net [173.186.217.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cmsmcq@blackmesatech.com) by pdx1-sub0-mail-a314.dreamhost.com (Postfix) with ESMTPSA id 4VjkQ01Pxpz8V for ; Mon, 20 May 2024 10:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackmesatech.com; s=dreamhost; t=1716224536; bh=LUn0p/y3FA2+IresTl+b/kTlNETle09546TUwTy655U=; h=From:To:Subject:Date:Content-Type; b=kZtVBiQwtXW8Y2DiFBeAFxO4kgeSY73qRD3Z9OKCbeJg/SFJFKsTyTUbWKYznr9bv WGxiCH7FxKQva9MbiuR78rPccNvaRuCRvz2mq+ez8nJUHrjKkVkAYw82ixwB6Whg86 07f20epTa2DwvhbCmLBvbBBXm5hvocK+nnI3kBikQQyTpYzOsZtNIa0yLGCPHuANhA qzYlVimd/pS92ZVnxYYttf0iJSog9rQNmR5D04i+LjOItGDhikz5hDLIUQ9PdayqKY Gzw+sofvsG4PYZqfm+7EjwXqkBZQtGrLHwLvJ9APABb7r5Xi4q033dDZltJ5153kGa DBC9+gkyn9Bxw== User-agent: mu4e 1.6.10; emacs 28.2 From: "C. M. Sperberg-McQueen" To: emacs-orgmode@gnu.org Subject: [BUG] Reference chains (C refers to B refers to A) in tangle do not behave as expected [9.5.5 (release_9.5.5 @ /usr/local/share/emacs/28.2/lisp/org/)] Date: Mon, 20 May 2024 10:44:46 -0600 Message-ID: <87jzjov2ll.fsf@blackmesatech.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.223.163; envelope-from=cmsmcq@blackmesatech.com; helo=serval.cherry.relay.mailchannels.net 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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 21 May 2024 02:03:05 -0400 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 5BBCE13707 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.06 X-Spam-Score: -6.06 X-TUID: fW1hl2Xxbxhr Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ My thanks to those who made and maintain org-mode. Consider the following literate program in org mode: ................ make-abc.org: #+title: Minimal example #+date: 20 May 2024 The first letter is A. #+name: Able #+begin_src txt A is for application. #+end_src The second letter is B. It follows A. #+name: Baker #+begin_src txt :noweb tangle <> B is for beta-tester. #+end_src The third letter is C. We'll stop here. #+name: Charlie #+begin_src txt :tangle abc.txt :noweb tangle <> C is for coder. #+end_src Bottom line: two-level inclusions work only if the middle layer (here, /Baker/) has ~:noweb yes~. Using ~:noweb tangle~ on /Baker/ produces the same results as using ~:noweb no~. ................ end make-abc.org: When I run org-babel-tangle (C-c C-v t) to produce abc.txt, what I expect is a file containing the three lines A is for application. B is for beta-tester. C is for coder. in that order. What I get is a file containing: <> B is for beta-tester. C is for coder. When I change the noweb header argument on source code block Baker from :noweb tangle to :noweb yes, I get the expected result when tangling. Unfortunately, :noweb yes also means that the reference from Baker to Able is expanded in the HTML export, which is not (here) what I want. In the org-mode manual [1], the meaning of :noweb tangle is described as: "Expansion of noweb syntax references in the body of the code block when tangling. No expansion when evaluating or exporting." I think that running org-babel-tangle counts as tangling, so I expect the noweb syntax references inside of code block Baker to be expanded. If I've misunderstood the documentation, a clarification would be welcome. If there are other work-arounds, I would be glad to hear of them. Thanks. [1] https://orgmode.org/manual/Noweb-Reference-Syntax.html Emacs : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-07-17 Package: Org mode version 9.5.5 (release_9.5.5 @ /usr/local/share/emacs/28.2/lisp/org/) current state: ============== (setq org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function #[257 "\300%1\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-log-done 'time org-agenda-files '("/home/cmsmcq/2024/tlrr/A/todo-tlrr.org" "/home/cmsmcq/2024/ixml/A/todo-ixml.org" "/home/cmsmcq/2024/mlcd/A/todo-mlcd.org" "/home/cmsmcq/2024/A/todo-oop.org") org-export-before-parsing-hook '(org-attach-expand-links) org-archive-hook '(org-attach-archive-delete-maybe) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-ascii-format-drawer-function #[771 "%1\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-link-from-user-regexp "\\\\|\\" org-mode-hook '((lambda nil (progn (modify-syntax-entry 60 "_" org-mode-syntax-table) (modify-syntax-entry 62 "_" org-mode-syntax-table)) ) #[0 "\301\211%10\207" [imenu-create-index-function org-imenu-get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-babel-load-languages '((shell . t) (emacs-lisp . t)) org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-latex-format-headline-function 'org-latex-format-headline-default-function org-confirm-shell-link-function 'yes-or-no-p org-reveal-start-hook '(org-decrypt-entry) org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-odt-format-headline-function 'org-odt-format-headline-default-function org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-tangle-lang-exts '(("D" . "d") ("C++" . "cpp") ("awk" . "awk") ("clojurescript" . "cljs") ("clojure" . "clj") ("fortran" . "F90") ("groovy" . "groovy") ("haskell" . "hs") ("java" . "java") ("julia" . "jl") ("latex" . "tex") ("LilyPond" . "ly") ("lisp" . "lisp") ("lua" . "lua") ("maxima" . "max") ("ocaml" . "ml") ("perl" . "pl") ("processing" . "pde") ("python" . "py") ("ruby" . "rb") ("sed" . "sed") ("emacs-lisp" . "el") ("elisp" . "el")) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "PROG(p)" "INTERRUPT(i)" "DONE(d)") ) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-emphasis-alist '(("*" bold) ("/" italic) ("=" org-verbatim verbatim) ("~" org-code verbatim) ("+" (:strike-through t))) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("mu4e" :follow mu4e-org-open :store mu4e-org-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302%4Q%2\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302%4Q%2\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302%4Q%2\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302%4Q%2\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302%4Q%2\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-html-format-headline-function 'org-html-format-headline-default-function org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-include-diary t ) -- C. M. Sperberg-McQueen Black Mesa Technologies LLC http://blackmesatech.com