From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Noweb blocks duplicate during Org export if part of #+include Date: Wed, 12 Dec 2018 13:50:23 -0500 Message-ID: References: <87wookfj82.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX9b5-0003BU-HF for emacs-orgmode@gnu.org; Wed, 12 Dec 2018 13:51:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX9b4-0005A4-Mr for emacs-orgmode@gnu.org; Wed, 12 Dec 2018 13:51:03 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:45663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX9b4-00059I-Fd for emacs-orgmode@gnu.org; Wed, 12 Dec 2018 13:51:02 -0500 Received: by mail-lf1-x133.google.com with SMTP id b20so14307200lfa.12 for ; Wed, 12 Dec 2018 10:51:02 -0800 (PST) In-Reply-To: <87wookfj82.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-org list On Sat, Dec 8, 2018 at 4:42 AM Nicolas Goaziou wrote: > Now, onto the second case. When evaluating Babel code, the whole initial > buffer is taken as reference. It allows, for example, to define source > blocks in a dedicated section, and export another one that calls them. > When the INCLUDE keyword is expanded, there are two ":noweb-ref > some_snippet". Even if they are outside the exported subtree, they are > still concatenated and used as a replacement for "<". > > In a nutshell, that can be surprising, but this is to be expected. Thank you for the detailed answer. As I don't know how to "fix" this, I will just remember to not use Noweb in subtrees that I plan to #+include.