From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Bug: COMMENT and noweb-ref Date: Thu, 26 Sep 2019 20:09:10 +0200 Message-ID: <84zhirc4l5.fsf@gmail.com> References: <87o8zkyli6.fsf@gmail.com> <87y2ybgfk4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36367) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDYCo-0001o6-0W for emacs-orgmode@gnu.org; Thu, 26 Sep 2019 14:09:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDYCm-0004dc-66 for emacs-orgmode@gnu.org; Thu, 26 Sep 2019 14:09:29 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:48740 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iDYCl-0004Vk-I7 for emacs-orgmode@gnu.org; Thu, 26 Sep 2019 14:09:27 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iDYCa-0008Hu-Fn for emacs-orgmode@gnu.org; Thu, 26 Sep 2019 20:09:16 +0200 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-orgmode@gnu.org Sebastian Miele writes: > In the following days I will try to fix it and write a regression test. > > However, in the unlikely case that this is a feature and not a bug, > please let me know. Please also let me know, if anyone is already on it. > > Sebastian Miele writes: > >> org-babel-tangle on >> >> * A >> >> #+BEGIN_SRC elisp :tangle yes :noweb yes >> ;; A >> <> >> #+END_SRC >> >> * COMMENT B >> >> #+BEGIN_SRC elisp :noweb-ref B >> ;; B >> #+END_SRC >> [...] >> >> produces a file with A and B in it. Expected: Just A. Changing >> >> #+BEGIN_SRC elisp :noweb-ref B >> ;; B >> #+END_SRC >> >> to >> >> # #+BEGIN_SRC elisp :noweb-ref B >> # ;; B >> # #+END_SRC >> >> does yield the expected result. Your expectation looks right to me. I guess nobody thought about this case before. Happy hacking, -- Marco