From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sean O'Halpin" Subject: Re: Feature request for noweb mode that strips references on export Date: Fri, 30 Mar 2012 17:22:47 +0100 Message-ID: References: <87d39ylgt0.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDebE-0005ne-Ex for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 12:22:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDebC-0000rn-R2 for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 12:22:52 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:58444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDebC-0000rL-I6 for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 12:22:50 -0400 Received: by eeke53 with SMTP id e53so280598eek.0 for ; Fri, 30 Mar 2012 09:22:48 -0700 (PDT) In-Reply-To: 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: Eric Schulte Cc: emacs-orgmode , avdi@avdi.org Hi, I've tried to use the new :noweb strip-export feature but I can't work out the magic combination of headers (working with git head, i.e. commit 67694297fa0f9b32cf4bfe812ba8a5c5cf4a0859). Here is a stripped down example: START OF EXAMPLE * Example Define method #+name: boilerplate #+begin_src ruby def hello "Hello World" end #+end_src Use it #+name: example #+begin_src ruby :exports both :noweb strip-export =ABboilerplate=BB hello #+end_src And here is the result: #+RESULTS: example : Hello World END OF EXAMPLE On export, I expect this to display the result string "Hello World" after the code "hello" but get nothing. If I change the :noweb strip-export to :noweb yes, I do get the output (but also the boilerplate of course). Is strip-export meant to work like this? If so, could someone please post a working example? Thanks, Sean