From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SDeMDfpRJ2AMbQAA0tVLHw (envelope-from ) for ; Sat, 13 Feb 2021 04:13:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KLMvCfpRJ2D+CAAAbx9fmQ (envelope-from ) for ; Sat, 13 Feb 2021 04:13:46 +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 AD3CD1B971 for ; Sat, 13 Feb 2021 05:13:45 +0100 (CET) Received: from localhost ([::1]:36364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAmJU-00065K-R8 for larch@yhetil.org; Fri, 12 Feb 2021 23:13:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAmIx-000648-Pn for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 23:13:11 -0500 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:41178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAmIw-0004AR-5k for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 23:13:11 -0500 Received: by mail-qt1-x829.google.com with SMTP id z32so1241277qtd.8 for ; Fri, 12 Feb 2021 20:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SbkJYQ/fynmuz7yDK4QweqE03RFHChs4m4P5USjazso=; b=g80l6E+PE/pkl0krrDfEF4eOTKQ+Lo4k63lloXJAFwtR/BYVTdGjIAFltTnPBH40u2 opgJndEGJl0+rimAD1kNcL+ON+NFrcKXI72rkyJ98uuYKnzj5MdgpVw/GS0klQpyJjk8 OTdieUW2SH70VIl8WZfjj4yFdj1a+6GVfnsmZdayS94hLZFnubJ4REFRPLEkmBZYg+5Y qKu51NXfI8FgEcNWd1x8Rdz0oxRAgGzfmS3o311qzEg2mQ94+dymwGxLsNKUlTY28Win wb4aJqidSV7+NxTU3a2PAOLmHg7mRyTZ6zVSPkMFfqU+MS7nyNoRuGtWKkDefsCpWfqG xjKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SbkJYQ/fynmuz7yDK4QweqE03RFHChs4m4P5USjazso=; b=FCKOdbPYs1aGTRjGWERFH2mpM84YB0eWkqm72UadkYO2P2AqFBPjKjOP0GA/Tod9Lm zK1vjCZx9bIoYxHOAl3J+PqcOXQ+TJixgN6Zk+5fnHwxC0JGIjrf/g+7jfFzPbfb1OZu yhSl+yIwyRVxL9gpZW6B7rljIJIwg8yybRzmhVZrsCj7NLaRepjMSI5DFN3v4Im+6hJw gQsIjZCeXryjjVcQD90lwjTXO28WSj0tJvADd4YzFod6O+lAyTWNjn3M1dXwCtYpxt75 BxGl6q4O2nybKDDGPW2BFwvJYNBG3d7lyRnrVs+L/axv2wRZRsLfmBpf1ZCbXC4BPIvK McFg== X-Gm-Message-State: AOAM5316fke7ijU/tzE9YvZhyAJUFNEhz+y73IGj7SMoLEUIxiWY7w9N or88R+RoU/17R5ScXN2FyecpvblN0BbLnA== X-Google-Smtp-Source: ABdhPJwHAjXKuBF0BNbqU6rHEWRJ4rhf1R3UWdCkuD58/GHJ1wNlJh9+aHKYnktJKHdOl/Aahq5JQQ== X-Received: by 2002:a05:622a:3cf:: with SMTP id k15mr5727367qtx.368.1613189588843; Fri, 12 Feb 2021 20:13:08 -0800 (PST) Received: from cibola.cibola (pool-108-45-87-170.washdc.fios.verizon.net. [108.45.87.170]) by smtp.gmail.com with ESMTPSA id 15sm6834512qty.65.2021.02.12.20.13.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 20:13:08 -0800 (PST) From: "Kevin M. Stout" X-Google-Original-From: "Kevin M. Stout" Date: Fri, 12 Feb 2021 23:13:06 -0500 To: emacs-orgmode@gnu.org Subject: Re: 2 Surprises and 2 Questions Regarding Org Tangle Message-ID: <20210213041306.GA17795@cibola.cibola> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=kevin.m.stout@gmail.com; helo=mail-qt1-x829.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=g80l6E+P; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Queue-Id: AD3CD1B971 X-Spam-Score: -3.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: TLIkooqCg4lh On 2021-02-11 18:44, Diego Zamboni wrote: > #2 is known (maybe documented? Not sure) behavior: using :noweb-ref > accumulates multiple blocks with the same name, whereas #+NAME uses only > the first one. I think #+NAME's are supposed to be unique within a document. It seems that more recent versions of org-babel-expand-noweb-references (not org-babel-tangle, as I said in an earlier message) no longer accumulate blocks with common #+NAMEs. (Now, though, #+NAME has priority over :noweb-ref, which is the opposite of how things were done before.) Looking through some older discussions on the topic, I do see the downsides of accepting duplicate #+NAMEs, which are rooted in the assumption of uniqueness made elsewhere. Even so, I still hold that #+NAME: this is a cool way to do something #+BEGIN_SRC language stuff #+END_SRC is a much nicer syntax than #+BEGIN_SRC language :noweb-ref "this is a cool way to do something" stuff #+END_SRC especially as a project grows. Perhaps we could have a variation on #+NAME that doesn't need to be unique? Maybe something like #+NOREF, to evoke :noweb-ref? Or #+NONAME? Sincerely, Kevin M. Stout