[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Feature request: simplify usage of special blocks (for beamer)
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Feature request: simplify usage of special blocks (for beamer) |
Date: |
Sun, 02 Dec 2018 21:42:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Carlos Pita <address@hidden> writes:
> One thing the core parser could do is to put the remaining of the
> opening line of a special block into an :args or similar property of
> the special block element, leaving it otherwise unparsed.
I thought about it a long time ago. However, I could not, and still
cannot, find an interesting use case for it in Org. This is a good
indicator that we do not need the feature.
> This is in the same spirit than what it already do for the affiliated
> attrs_X element.
Not really.
For source blocks, arguments on the same line as the opening string
"BEGIN_SRC" are treated as a "HEADER" affiliated argument, which is
specific to Babel. OTOH, although almost every element type can have
affiliated keywords, only a small part could accept such "special
parameters". In a nutshell, this isn't symmetrical.
> It's not a lot of help but it would at least spare
> backends from having to parse the remaining of the opening line as
> I did.
So far, none of our back-ends need this, even though they are relatively
complex.
So, we could use the room there if one day, we need it for something,
but until then, I don't think we should extend syntax just because we
can do it.
Regards,
--
Nicolas Goaziou