From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [org-babel] :no-expand header expands noweb refs Date: Wed, 06 Oct 2010 10:39:45 -0600 Message-ID: <87d3rn8ecu.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=60962 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3bcG-0008Sw-Md for emacs-orgmode@gnu.org; Wed, 06 Oct 2010 17:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3bcE-0006rW-8r for emacs-orgmode@gnu.org; Wed, 06 Oct 2010 17:33:35 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:62003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3bcE-0006rS-6H for emacs-orgmode@gnu.org; Wed, 06 Oct 2010 17:33:34 -0400 Received: by yxk8 with SMTP id 8so17889yxk.0 for ; Wed, 06 Oct 2010 14:33:33 -0700 (PDT) In-Reply-To: (aditya siram's message of "Tue, 5 Oct 2010 22:38:36 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: aditya siram Cc: emacs-orgmode@gnu.org Hi, The ":noweb yes" header argument will expand noweb references during both tangling and weaving. I've added another noweb header argument "tangle" which will expand noweb header arguments during tangling but not during weaving(export), so replacing ":noweb yes" with ":noweb tangle" in your example below should result in the desired behavior. Best -- Eric aditya siram writes: > It appears I misread the manual. 'no-expand' works only for tangling - > but my original question stands. Is there a header that provides this > feature for weaving with links to the chunk like a noweb document? > > -deech > > On Tue, Oct 5, 2010 at 10:12 PM, aditya siram wr= ote: >> Hi all, >> I may have understood the :no-expand header incorrectly, but I thought >> it suppressed expanding noweb references while exporting but seems to >> expand them. >> For example I have an org file that looks like this (simplified) : >> * Root >> #+begin_src fundamental :noweb yes :no-expand :tangle Root.txt >> =C2=A0<> >> =C2=A0<> >> #+end_src >> * Chunk 1 >> #+source: Chunk1 >> #+begin_src fundamental >> =C2=A0code for chunk 1 >> #+end_src >> * Chunk 2 >> #+source: Chunk2 >> #+begin_src fundamental >> =C2=A0code for chunk 2 >> #+end_src >> >> When I 'org-export-as-ascii-to-buffer' I expect this : >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Root >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D=3D=3D=3D >> >> Table of Contents >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> .... >> >> 1 Root >> ~~~~~~~ >> =C2=A0<> >> =C2=A0<> >> ... >> >> But I get this: >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Root >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D=3D=3D=3D >> >> Table of Contents >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> 1 Root >> 2 ... >> >> >> 1 Root >> ~~~~~~~ >> >> =C2=A0code for chunk 1 >> =C2=A0code for chunk 2 >> ... >> >> >> Thanks for the help! >> -deech >> > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode