[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [ANN] ASCII back-end for new export engine
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [ANN] ASCII back-end for new export engine |
Date: |
Sun, 22 Jan 2012 16:45:11 +0100 |
Hello,
Martyn Jago <address@hidden> writes:
> I've been playing with (org-export-dispatch) with regard to some simple
> source blocks and have a couple of observations (apologies in advance if
> source blocks are not fully implemented yet).
>
> The test code is:
>
>
> * Test
>
> #+begin_src emacs-lisp # :exports both
> ;; Add two numbers
> (+ 2 3)
> #+end_src
>
> #+results:
> : 5
>
>
> 1) The commented out `# :exports both' appears to be exported as
> uncommented and relevant (actually, this appears to be true of the
> original exporter too).
I cannot reproduce it. Anyway, see my comments below.
> 2) If the source block is executed in buffer with (org-ctrl-c-ctrl-c),
> as shown above, then the exporter appears to export the in-buffer
> results /and/ the export-generated results (where :exports is results
> or both) resulting in two sets of identical results in the export.
It's out of exporter's scope. When you ask to export some buffer, what
is really parsed is a copy of the current buffer with
`org-export-blocks-preprocess' applied to it.
So, simply apply that function in your test buffer, and you will see
what is sent to the parser. That will explain why the results appear
twice.
In other words, tweaking the output of `org-export-blocks-preprocess'
will automatically change the outcome of the export process.
Regards,
--
Nicolas Goaziou
- Re: [O] [ANN] ASCII back-end for new export engine, (continued)
- Re: [O] [ANN] ASCII back-end for new export engine, Samuel Wales, 2012/01/21
- Re: [O] [ANN] ASCII back-end for new export engine, Nicolas Goaziou, 2012/01/22
- Re: [O] [ANN] ASCII back-end for new export engine, Samuel Wales, 2012/01/22
- Re: [O] [ANN] ASCII back-end for new export engine, Samuel Wales, 2012/01/28
- Re: [O] [ANN] ASCII back-end for new export engine, Nicolas Goaziou, 2012/01/28
- Re: [O] [ANN] ASCII back-end for new export engine, Samuel Wales, 2012/01/28
- Re: [O] [ANN] ASCII back-end for new export engine, Nicolas Goaziou, 2012/01/28
- Re: [O] [ANN] ASCII back-end for new export engine, Samuel Wales, 2012/01/28
- Re: [O] [ANN] ASCII back-end for new export engine, Nicolas Goaziou, 2012/01/28
Re: [O] [ANN] ASCII back-end for new export engine, Martyn Jago, 2012/01/22
- Re: [O] [ANN] ASCII back-end for new export engine,
Nicolas Goaziou <=
Re: [O] [ANN] ASCII back-end for new export engine, Thomas S. Dye, 2012/01/22
- Re: [O] [ANN] ASCII back-end for new export engine, Nicolas Goaziou, 2012/01/22
- Re: [O] [ANN] ASCII back-end for new export engine, Thomas S. Dye, 2012/01/23
- Re: [O] [ANN] ASCII back-end for new export engine, Nicolas Goaziou, 2012/01/25
- [O] Tweaking the export (was: Re: [ANN] ASCII back-end for new export engine), Christian Wittern, 2012/01/26
- Re: [O] Tweaking the export, Nicolas Goaziou, 2012/01/27
- Re: [O] Tweaking the export, Jambunathan K, 2012/01/27