From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: Feature request for noweb mode that strips references on export Date: Sat, 31 Mar 2012 11:04:11 +0200 Message-ID: <877gy16t10.fsf@gmail.com> References: <87d39ylgt0.fsf@gmx.com> <871uoagi08.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDuEW-0003OF-IJ for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 05:04:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDuEU-0006bV-Di for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 05:04:28 -0400 Received: from plane.gmane.org ([80.91.229.3]:46550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDuEU-0006bO-6s for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 05:04:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SDuER-00023w-3I for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 11:04:23 +0200 Received: from anantes-556-1-310-218.w2-9.abo.wanadoo.fr ([2.9.254.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 11:04:23 +0200 Received: from daimrod by anantes-556-1-310-218.w2-9.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 11:04:23 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Sean O'Halpin" writes: > On Fri, Mar 30, 2012 at 5:39 PM, Daimrod wrote: >> If you don't want to export boilerplate you've to use :exports none in >> it. >> >> #+name: boilerplate >> #+begin_src ruby :exports none >> def hello >>  "Hello World" >> end >> #+end_src >> >> Use it >> >> #+name: example >> #+begin_src ruby :exports both :noweb strip-export >> <> >> >> hello >> #+end_src >> > Thanks but that's not my problem. When I use :exports both I get the > code but not the results output in my exported HTML. > Do you get the "Hello World" output? If so, it looks like I'll have to > debug my configuration. No, you're right, I have to execute evaluate the code manually to produce #+RESULTS: example : Hello World and then it's exported but only if the code isn't evaluated during the export. It looks like there is a bug with in the ruby part because the following code works as expected. ---------- * Title #+name: boilerplate #+begin_src emacs-lisp :exports none (defun hello () "Hello World") #+end_src Use it #+name: example #+begin_src emacs-lisp :exports both :noweb strip-export <> (hello) #+end_src ---------- It exports to ---------- 1 Title Use it (hello) Hello World ----------