From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 +JTcCZ5QRmcNKAEAe85BDQ:P1 (envelope-from ) for ; Tue, 26 Nov 2024 22:50:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +JTcCZ5QRmcNKAEAe85BDQ (envelope-from ) for ; Tue, 26 Nov 2024 23:50:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="EYWT/eke"; dmarc=pass (policy=none) header.from=gmail.com; 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=1; s=key1; d=yhetil.org; t=1732661405; a=rsa-sha256; cv=none; b=N2IUDhGL0l3+P6mwUCDhSBFlId4WFj7GffuqXT0vOaAqGcRkGCI8xj+xg1plYCqRcYqCzm hxIfFApSd0Q/XbVMhnN5Stwg8L3AUab2ypuBX3wWaQJGmKuaAvTwhdaJjdJARE8FZ5OE8S LRps63l7cvx0bZ3dzb5UzTGhpvwt+nIsMM8n0iJ6DHfDb1G328PKUrDafc+nnhpQY+g2Oo sUekZx9RBKSQKdeRsZ4RgcZYHJEd9B2VKUxnlLjdmuwqdBNyRbVVokhI7lREuRHjQkM1B5 ft6U6zC6deLMlMl7XP747i+rO+S4US7RU/lJN7y4y1U+o09YY9ER2fwWUX6k5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="EYWT/eke"; dmarc=pass (policy=none) header.from=gmail.com; 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=1732661405; 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=oRNwSN2lkDVgwUd3jiCg4g9PR/cyUSBPdofHTpaAA34=; b=qb5ESiHJVyhY3pnQqxwlPWWSjZN2z6Xnaok7jyIHkNg+qR382b03thAQ60TRnIna5MrQ/O L5j5oJ1SbDz58wxPPfiB1wuv68tIbmSVoM7c9iq1zZZiQgF1TmSNmnMZIjS8FiQd1wqScD kBIzDus5MaWqJ/udFjhwsJY5fIY4HxVzSLunvHirv/YfCgig1J//Fj70jH3oWPRkEtxiaj nnNg3ww9ObEQaarOIFBUvpukQ0IVMfPa9LklzGl8E8TVB9FDQnl2zgsIaVCxOkZR22leXb ubgbtGECJ/Dpw/hokzY2oF7ShREmy540eD2FKmQPn95Hf3C3kzwUf4QZGdpiCA== 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 E2C234D8B for ; Tue, 26 Nov 2024 23:50:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tG3Hd-0004iv-7D; Tue, 26 Nov 2024 16:39:45 -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 <8dcc.git@gmail.com>) id 1tG3HL-0004bI-Ng for emacs-orgmode@gnu.org; Tue, 26 Nov 2024 16:39:27 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <8dcc.git@gmail.com>) id 1tG3HF-0001s9-8Y for emacs-orgmode@gnu.org; Tue, 26 Nov 2024 16:39:22 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-434a752140eso9021395e9.3 for ; Tue, 26 Nov 2024 13:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732657157; x=1733261957; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=oRNwSN2lkDVgwUd3jiCg4g9PR/cyUSBPdofHTpaAA34=; b=EYWT/ekebjYN2AP1Up/+cLF1gIsrWveithCvZHzh77Z35EupHWhTetBzDleEKLelL1 3omtmPANoJuoRUI8RghwdDF0kMW0JbpDpp6DXk/9hMBFAnlbiOxO8gfGmTWhQg5+jQVE gxUc7w95kDRTWeSyTyxVqZwp2TSYLRqBhcBHF+Y1iCa7ZAEyf6w7Y9oklIPhYftsX1VO HBKK+ggkuTYcm2EHwuDC7gIIyiIeE+yarjeW72SK3dUDT73ajFPAywyUHkwHGvs4emXn SXRljt8O9yxccnGIJL2gj+1JOvM7ZEb991mimVZ6lZ6aSiV3BuvWbzvWwHMJAQ/jSX6f ELzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732657157; x=1733261957; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oRNwSN2lkDVgwUd3jiCg4g9PR/cyUSBPdofHTpaAA34=; b=gNMn0BsL5lSKXjY6de4hjGTBjknalLVShqMxbc59sTHXySGenB4EZiL7LjvLOjaSIO GL5CEY0RBweFj2ze/PpoRohk3ZFhnMVgLU1KTMawZsNygD96nWedzqK8Bix8hQkYIcvE 7YbaXwhlxBJa2Ml1ujdQmIaiI30zdZVg1QbT+RhfwfxlAAS1r6QGN2xhmiYypUqSnsg0 usAWcxsZelAwVWXMQFst9uK2imXIN6dcONupBJE0F/7Prps9Heaqy+X1aenfWXtutJgv o4MHrwQMOc2IhOQXnYZU9N+d+hQA81Oa22+hv8+nStFITrz6Hr0xsRca3NI+ZODRwrDo +heA== X-Gm-Message-State: AOJu0YwKSMcSgNCCok25xKxStFJs/aIutclo8sC3BO/ezvzT3TgAwJ9D wWyHDL9jTG1/G8v2aGRgonkkyD32UiKp7R1SsyXDuy06tS/4XMi2vjr4Zw== X-Gm-Gg: ASbGncvzhd6bkiTfBZxdGRvq87HSiX3eKek0hqXfPOhvaKHVO4KrjPvKEvfcN3TfLtr EahpqKSmljGbJ5CcaVVtUWptX5guSkwx6+zl116K/cliZhF11SV64MzLyQk4czLRgTRzuzt8x65 SQGIvEqUN2RljuWdi5Iz94dhBQHf1vCavaFKEa84Gmvrfm6FBW/5En0TKQRjThHrim56oK8Jlr9 taS8L+VXJhqwg+sX/yGgWvN70OXT5t5trqYSHA1q44gRB6q8FEF+k1R5PJZL5sE0vqTU3fY X-Google-Smtp-Source: AGHT+IEbpYCqL1pr7ndEXncp1MQ19jOkRQkGKbZ/IPrMRVJ1Q5NQ0LOFnGt/a5WkQhh1yaKc0YxBnA== X-Received: by 2002:a05:6000:20c7:b0:382:2f62:bd3e with SMTP id ffacd0b85a97d-385c6ebae0fmr259362f8f.27.1732657157260; Tue, 26 Nov 2024 13:39:17 -0800 (PST) Received: from computer (85.251.97.25.dyn.user.ono.com. [85.251.97.25]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fb537d4sm14295004f8f.61.2024.11.26.13.39.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2024 13:39:16 -0800 (PST) From: 8dcc <8dcc.git@gmail.com> To: emacs-orgmode@gnu.org Subject: Text preceding noweb references is duplicated Date: Tue, 26 Nov 2024 22:39:12 +0100 Message-ID: <87mshlzncv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=8dcc.git@gmail.com; helo=mail-wm1-x333.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URI_DOTEDU=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: -5.37 X-Spam-Score: -5.37 X-Migadu-Queue-Id: E2C234D8B X-Migadu-Scanner: mx12.migadu.com X-TUID: aTRWmdNQ7YqD Hello, Using the following Org file: Paragraph zero... #+begin_src scheme :tangle org-output.scm :noweb yes (list <>) #+end_src Paragraph one... #+begin_src scheme :tangle no :noweb-ref my-list-item (+ 1 2) #+end_src Paragraph two... #+begin_src scheme :tangle no :noweb-ref my-list-item (+ 3 4) #+end_src Paragraph three... #+begin_src scheme :tangle no :noweb-ref my-list-item (+ 5 6) #+end_src After calling `org-babel-tangle', the contents of 'org-output.scm' are: (list (+ 1 2) (list (+ 3 4) (list (+ 5 6)) Notice how all lines start with '(list', while only the last line contains the closing parentheses. However, if I use the following noweb[1] file: Paragraph zero... <>= (list <>) @ Paragraph one... <>= (+ 1 2) @ Paragraph two... <>= (+ 3 4) @ Paragraph three... <>= (+ 5 6) Which was created using the linked one-page guide[2], I get the following (expected) output: (list (+ 1 2) (+ 3 4) (+ 5 6)) This noweb output was generated using the following command, from version 2.12: notangle -Rfile.scm my-noweb-file.nw > noweb-output.scm Although the current Org behavior can be useful in some situations, I would like to know if it's intentional before using it, and, in that case, if it's documented anywhere in the manual. Thanks in advance. [1] https://www.cs.tufts.edu/~nr/noweb/ [2] http://literateprogramming.com/nowebpg1.pdf