From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] cannot comment out noweb references Date: Thu, 06 Mar 2014 09:51:08 -0700 Message-ID: <8738ivvur3.fsf@gmail.com> References: <87r47iw3wc.fsf@gmail.com> <8761otcaj8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLgbx-0000TV-6c for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 17:17:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLgbs-0005XK-Bx for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 17:17:53 -0500 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]:55223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLgbs-0005X9-4R for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 17:17:48 -0500 Received: by mail-pd0-f170.google.com with SMTP id v10so3141714pde.15 for ; Thu, 06 Mar 2014 14:17:46 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org I think you may have to use the slower and more correct version of noweb expansion to avoid these sorts of problems. Best, Samuel Wales writes: > By which I mean, the bug should be reproducible if you do so. > > On 2/11/14, Samuel Wales wrote: >> Try with: >> >> (setq org-babel-use-quick-and-dirty-noweb-expansion t) >> >> This setting is much, much faster, by the way. >> >> On 2/5/14, Eric Schulte wrote: >>> Samuel Wales writes: >>> >>>> hi eric, >>>> >>>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever >>>> a >>>> #+END_SRC >>>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref >>>> whatever >>>> # b >>>> # #+END_SRC >>>> #+BEGIN_SRC sh :results output :noweb yes >>>> echo <> >>>> #+END_SRC >>>> >>>> it is a bug that babel tries to use b. >>>> >>>> babel tries to use COMMENT comments also. >>>> >>>> samuel >>> >>> When executing the last code block I get the expected output, namely >>> "a". >>> >>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever >>> a >>> #+END_SRC >>> >>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever >>> # b >>> # #+END_SRC >>> >>> #+BEGIN_SRC sh :results output :noweb yes >>> echo <> >>> #+END_SRC >>> >>> #+RESULTS: >>> : a >>> >>> Best, >>> >>> -- >>> Eric Schulte >>> https://cs.unm.edu/~eschulte >>> PGP: 0x614CA05D >>> >> >> >> -- >> The Kafka Pandemic: http://thekafkapandemic.blogspot.com >> >> The disease DOES progress. MANY people have died from it. ANYBODY can get >> it. >> >> Denmark: free Karina Hansen NOW. >> -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D