From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: No Expansion of noweb references when exporting Date: Thu, 19 May 2011 07:50:39 -0600 Message-ID: <878vu2iyt3.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN47L-0004t7-4r for emacs-orgmode@gnu.org; Thu, 19 May 2011 10:22:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QN47K-0007GU-5w for emacs-orgmode@gnu.org; Thu, 19 May 2011 10:22:23 -0400 Received: from snape.cs.unm.edu ([64.106.20.59]:35960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN47J-0007G8-Rv for emacs-orgmode@gnu.org; Thu, 19 May 2011 10:22:22 -0400 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: Mark Cox Cc: emacs-orgmode@gnu.org Hi Mark, Thanks for pointing this out. After checking the manual [1] for the noweb header argument I realized you were right, we're not currently living up to the described behavior. I've just pushed up a patch which correctly implements the ":noweb yes" expansion on export behavior. Best -- Eric Mark Cox writes: > Hi, > > Is it possible for the output of the expansion of a code block to > appear in the exported document? > > Consider the example: > > #+TITLE: No expansion of noweb references when exporting > > * Example > :PROPERTIES: > :tangle: illustration.hpp > :END: > #+srcname: boiler-plate-code-generator() > #+begin_src emacs-lisp :results output :exports none :tangle no > (dolist (type '("int8_t" "uint8_t" "float" "double")) > (princ (format "template <> %s boiler_plate_code<%s>();\n" type type))) > #+end_src > #+begin_src c++ :noweb yes > <> > #+end_src > > When I export this to HTML using C-c C-e b, the text > <> is present. What I would like to see > is the output that is generated when tangling. > > Thanks > Mark > Footnotes: [1] http://orgmode.org/manual/noweb.html -- Eric Schulte http://cs.unm.edu/~eschulte/