From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oH2sAwPMn16ACAAA0tVLHw (envelope-from ) for ; Wed, 22 Apr 2020 04:45:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WAIdKQjMn16WDgAA1q6Kng (envelope-from ) for ; Wed, 22 Apr 2020 04:46:00 +0000 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 1CF43941E3A for ; Wed, 22 Apr 2020 04:45:59 +0000 (UTC) Received: from localhost ([::1]:41648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR7Gn-0002mN-CM for larch@yhetil.org; Wed, 22 Apr 2020 00:45:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45506) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR7GG-0002hz-UC for emacs-orgmode@gnu.org; Wed, 22 Apr 2020 00:45:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jR7GF-0008Pp-FF for emacs-orgmode@gnu.org; Wed, 22 Apr 2020 00:45:23 -0400 Received: from hiwela.pair.com ([209.68.5.201]:10640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jR7GF-0008HP-0p for emacs-orgmode@gnu.org; Wed, 22 Apr 2020 00:45:23 -0400 Received: from hiwela.pair.com (localhost [127.0.0.1]) by hiwela.pair.com (Postfix) with ESMTP id 92A7E9804D9; Wed, 22 Apr 2020 00:45:19 -0400 (EDT) Received: from minshall-entroware-apollo.cliq.com (unknown [70.134.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hiwela.pair.com (Postfix) with ESMTPSA id 53F7D8F0849; Wed, 22 Apr 2020 00:45:19 -0400 (EDT) Received: from apollo2.minshall.org (localhost [IPv6:::1]) by minshall-entroware-apollo.cliq.com (Postfix) with ESMTP id 9954160D62; Tue, 21 Apr 2020 21:45:18 -0700 (PDT) From: Greg Minshall To: Nicolas Goaziou Subject: Re: babel/noweb concatenation of equally-named code blocks fails? In-reply-to: Your message of "Mon, 20 Apr 2020 11:23:44 +0200." <875zdutsrj.fsf@nicolasgoaziou.fr> X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1254268.1587530718.1@apollo2.minshall.org> Date: Tue, 21 Apr 2020 21:45:18 -0700 Message-ID: <1254269.1587530718@apollo2.minshall.org> Received-SPF: softfail client-ip=209.68.5.201; envelope-from=minshall@umich.edu; helo=hiwela.pair.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/22 00:45:19 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Received-From: 209.68.5.201 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: 1.49 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=umich.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [1.49 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.56683523506403]; MX_INVALID(1.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.23), country: US(-0.01), ip: 209.51.188.17(-0.57)]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[209.51.188.17:from]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[minshall@umich.edu,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; HAS_LIST_UNSUB(-0.01)[]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[umich.edu : SPF not aligned (relaxed), No valid DKIM,none] X-TUID: b78lmndDCvEW Nicolas, thank you. wordsmithing opens up endless possibilities, so i don't know that the following is at all an improvement on your suggestion. but, it occurs to me to get the importance of =noweb-ref=, and its role in concatenation, brought out early on the "page". one paragraph currently reads: ---- Org can replace the Noweb style reference with the source code---or concatenation thereof---, or even the results of an evaluation, as detailed below. The =noweb= header argument controls expansion of Noweb syntax references. Expansions occur when source code blocks are evaluated, tangled, or exported. ---- an alternative: ---- Depending on the setting of the =noweb= header argument, Org will either ignore a Noweb style reference, or will attempt to replace it. In the latter case, the replacement text will be either the source code from exactly *one* named source code block (using either a #+name: line, or a =noweb-ref= header argument), or a concatentation of one or more source code blocks, each with an identically named =noweb-ref= header argument. Expansions can only occur when source code blocks are evaluated, tangled, or exported. For more details, see below. ---- again, thanks. cheers, Greg