Re: [O] Feature request for noweb mode that strips references on export

2012-04-01 Thread Sean O'Halpin
On Sat, Mar 31, 2012 at 4:32 PM, Eric Schulte wrote: > > Thanks for bringing this problem to light.  I've just pushed up a fix. > > Cheers, > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ Thanks! This is really useful. Regards, Sean

Re: [O] Feature request for noweb mode that strips references on export

2012-03-31 Thread Eric Schulte
Nick Dokos writes: > Sean O'Halpin wrote: > >> 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 >> >

Re: [O] Feature request for noweb mode that strips references on export

2012-03-31 Thread Nick Dokos
Sean O'Halpin wrote: > 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 > > > > #

Re: [O] Feature request for noweb mode that strips references on export

2012-03-31 Thread Daimrod
"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: exa

Re: [O] Feature request for noweb mode that strips references on export

2012-03-31 Thread Sean O'Halpin
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 :no

Re: [O] Feature request for noweb mode that strips references on export

2012-03-31 Thread Sean O'Halpin
On Fri, Mar 30, 2012 at 5:37 PM, Nick Dokos wrote: > This may have nothing to do with anything (it may even be an artifact of > mailer misbehavior) but is this supposed to be <>? These > are supposed to be ASCII chars, so if you are using some sort of extended > charset, try changing them and see

Re: [O] Feature request for noweb mode that strips references on export

2012-03-30 Thread Daimrod
"Sean O'Halpin" writes: > 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

Re: [O] Feature request for noweb mode that strips references on export

2012-03-30 Thread Nick Dokos
Sean O'Halpin wrote: > > #+name: example > #+begin_src ruby :exports both :noweb strip-export > =ABboilerplate=BB > > hello > #+end_src > This may have nothing to do with anything (it may even be an artifact of mailer misbehavior) but is this supposed to be <>? These are supposed to be ASCII

Re: [O] Feature request for noweb mode that strips references on export

2012-03-30 Thread Sean O'Halpin
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_

Re: [O] Feature request for noweb mode that strips references on export

2012-03-15 Thread Avdi Grimm
On Wed, Feb 1, 2012 at 10:21 AM, Eric Schulte wrote: > I've just added tested and documented such a "strip-export" argument to > :noweb.  Please let me know if it doesn't work as you expected. I just wanted to let you know I finally tried this out and it works beautifully. Thank you! -- Avdi Gr

Re: [O] Feature request for noweb mode that strips references on export

2012-02-01 Thread Eric Schulte
Avdi Grimm writes: > Presently there are three noweb modes: yes, no, and tangle. I would > like a fourth, which would behave as follows: > > On tangle: normal noweb expansion is performed. > On evaluation: normal noweb expansion is performed. > On export: noweb references are STRIPPED. Not just i

Re: [O] Feature request for noweb mode that strips references on export

2012-02-01 Thread Eric Schulte
Avdi Grimm writes: > P.S. It's been a while since I've been on this ML, so if there's a > "right way" to do a feature request please let me know and I'll do it > :-) > You initial post in this thread was perfect, succinct and complete. Cheers, > > On Tue, Jan 31, 2012 at 12:38 PM, Avdi Grimm

Re: [O] Feature request for noweb mode that strips references on export

2012-01-31 Thread Avdi Grimm
P.S. It's been a while since I've been on this ML, so if there's a "right way" to do a feature request please let me know and I'll do it :-) On Tue, Jan 31, 2012 at 12:38 PM, Avdi Grimm wrote: > On Tue, Jan 31, 2012 at 2:56 AM, Sebastien Vauban > wrote: >> Just for the sake of completeness, ther

Re: [O] Feature request for noweb mode that strips references on export

2012-01-31 Thread Avdi Grimm
On Tue, Jan 31, 2012 at 2:56 AM, Sebastien Vauban wrote: > Just for the sake of completeness, there is already a fourth option: Ah! Looks like I had an older version. Thanks for prompting me to update! I guess what I'm looking for would be called ":noweb export-strip" or something like that. --

Re: [O] Feature request for noweb mode that strips references on export

2012-01-30 Thread Sebastien Vauban
Hi Avdi, Avdi Grimm wrote: > Presently there are three noweb modes: yes, no, and tangle. I would > like a fourth, which would behave as follows: Just for the sake of completeness, there is already a fourth option: "no-export" which expands noweb references during tangling and execution, but not d

[O] Feature request for noweb mode that strips references on export

2012-01-30 Thread Avdi Grimm
Presently there are three noweb modes: yes, no, and tangle. I would like a fourth, which would behave as follows: On tangle: normal noweb expansion is performed. On evaluation: normal noweb expansion is performed. On export: noweb references are STRIPPED. Not just ignored, but the lines containing