[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] Make QUOTE an export keyword instead of an element type
From: |
Thomas S. Dye |
Subject: |
Re: [O] [RFC] Make QUOTE an export keyword instead of an element type |
Date: |
Sun, 26 Jan 2014 05:41:08 -1000 |
Aloha Nicolas,
Nicolas Goaziou <address@hidden> writes:
> At the moment, they are parsed specially by Org Elements, but I think it
> is a mistake. Like "COMMENT" keyword in headlines, "QUOTE" is more an
> instruction for the export framework. Therefore, they should be parsed
> as regular sections, and treated specially during export. The following
> patches permit it, in 3 steps:
>
> 1. Remove special parsing from "org-element.el",
> 2. Turn section contents into a big example block.
> 3. Remove quote section translators from export back-ends (contrib
> directory handled separately)
>
> This change implies that any quote-section translator and filter is
> ignored (but it will not generate an error if present). It also means
> that an export back-end cannot tell the difference between an example
> block and a quote section.
>
> Since quote sections were treated as example blocks (except in
> ox-ascii.el), the export behaviour will remain unchanged (except in
> ox-ascii.el).
>
> Alternatives:
>
> - Treat their contents as `quote-blocks' instead of `example-block'
> - Remove them altogether, since they don't bring anything new.
I didn't know about this undocumented feature. Since it doesn't bring
anything new, I'm fine with removing it altogether.
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com