* [org-babel] :no-expand header expands noweb refs
@ 2010-10-06 3:12 aditya siram
2010-10-06 3:38 ` aditya siram
0 siblings, 1 reply; 3+ messages in thread
From: aditya siram @ 2010-10-06 3:12 UTC (permalink / raw)
To: emacs-orgmode
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
<<Chunk1>>
<<Chunk2>>
#+end_src
* Chunk 1
#+source: Chunk1
#+begin_src fundamental
code for chunk 1
#+end_src
* Chunk 2
#+source: Chunk2
#+begin_src fundamental
code for chunk 2
#+end_src
When I 'org-export-as-ascii-to-buffer' I expect this :
Root
====
Table of Contents
=================
....
1 Root
~~~~~~~
<<Chunk1>>
<<Chunk2>>
...
But I get this:
Root
====
Table of Contents
=================
1 Root
2 ...
1 Root
~~~~~~~
code for chunk 1
code for chunk 2
...
Thanks for the help!
-deech
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [org-babel] :no-expand header expands noweb refs
2010-10-06 3:12 [org-babel] :no-expand header expands noweb refs aditya siram
@ 2010-10-06 3:38 ` aditya siram
2010-10-06 16:39 ` Eric Schulte
0 siblings, 1 reply; 3+ messages in thread
From: aditya siram @ 2010-10-06 3:38 UTC (permalink / raw)
To: emacs-orgmode
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 <aditya.siram@gmail.com> wrote:
> 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
> <<Chunk1>>
> <<Chunk2>>
> #+end_src
> * Chunk 1
> #+source: Chunk1
> #+begin_src fundamental
> code for chunk 1
> #+end_src
> * Chunk 2
> #+source: Chunk2
> #+begin_src fundamental
> code for chunk 2
> #+end_src
>
> When I 'org-export-as-ascii-to-buffer' I expect this :
> Root
> ====
>
> Table of Contents
> =================
> ....
>
> 1 Root
> ~~~~~~~
> <<Chunk1>>
> <<Chunk2>>
> ...
>
> But I get this:
> Root
> ====
>
> Table of Contents
> =================
> 1 Root
> 2 ...
>
>
> 1 Root
> ~~~~~~~
>
> code for chunk 1
> code for chunk 2
> ...
>
>
> Thanks for the help!
> -deech
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: [org-babel] :no-expand header expands noweb refs
2010-10-06 3:38 ` aditya siram
@ 2010-10-06 16:39 ` Eric Schulte
0 siblings, 0 replies; 3+ messages in thread
From: Eric Schulte @ 2010-10-06 16:39 UTC (permalink / raw)
To: aditya siram; +Cc: emacs-orgmode
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 <aditya.siram@gmail.com> 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 <aditya.siram@gmail.com> wrote:
>> 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
>> <<Chunk1>>
>> <<Chunk2>>
>> #+end_src
>> * Chunk 1
>> #+source: Chunk1
>> #+begin_src fundamental
>> code for chunk 1
>> #+end_src
>> * Chunk 2
>> #+source: Chunk2
>> #+begin_src fundamental
>> code for chunk 2
>> #+end_src
>>
>> When I 'org-export-as-ascii-to-buffer' I expect this :
>> Root
>> ====
>>
>> Table of Contents
>> =================
>> ....
>>
>> 1 Root
>> ~~~~~~~
>> <<Chunk1>>
>> <<Chunk2>>
>> ...
>>
>> But I get this:
>> Root
>> ====
>>
>> Table of Contents
>> =================
>> 1 Root
>> 2 ...
>>
>>
>> 1 Root
>> ~~~~~~~
>>
>> code for chunk 1
>> code 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-06 21:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06 3:12 [org-babel] :no-expand header expands noweb refs aditya siram
2010-10-06 3:38 ` aditya siram
2010-10-06 16:39 ` Eric Schulte
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).