Hi Berry,

sorry for the late reply, I was pretty busy lately.

I didn't know about inline tasks, thanks for let me know. The idea is cool but I think that regarding the use case I'm suggesting, they are a more or less hackish workaround and not a proper solution. I'm saying this because:

1) They are kinda optional, they are not enabled by default. But this is not too important.

2) They are oriented towards tasks. Clearly, my use case is not about tasks but about more granularity in exporting. It's true that, as a side effect, you can wrap some additional syntactical constructions into selectively exportable chunks by considering them as tasks.

Now, the concept of inline task could be generalized and, if the generalization is "general enough", maybe even enabled by default. But this is overkilling for my specific interest, specially if I had to implements something like that by myself. Instead, I could implement a more modest proposal (no Swift reference intended).

Regards
--
Carlos


On Sun, Mar 24, 2019 at 1:31 PM Berry, Charles <ccberry@ucsd.edu> wrote:
AFAICS, the functionality you seek already exists, although it is not heavily advertised.

`C-c C-x t' will insert an inline task. Within such a `task' you can put text, tables, src blocks and other objects.

Setting option `inline:nil' will prevent export, but leave the content visible to src blocks etc.

Alternatively, you can tag inlinetasks as with headlines to control their export.

Browse the commentary in org-inlinetask.el for more details.

HTH,

Chuck


> On Mar 23, 2019, at 2:20 PM, Carlos Pita <carlosjosepita@gmail.com> wrote:
>
> Hi all,
>
> when using lists, tables and example blocks as inputs to babel src
> blocks sometimes the inputs are just... inputs. There is some
> inconsistency in the fact that src blocks can be selectively exported
> but not their inputs. Commenting these inputs out makes them invisible
> to the block referencing them (apparently this method worked a time
> ago but it's not working now). OTOH using the noexport tag introduces
> spurious sections that interrupt the flow of the document and might be
> hard to close afterwards (similar to the boilerplate introduced by
> beamer blocks).
>
> What do you think of adding an :export yes/no parameter to these
> blocks? Or to blocks in general.
>
> Best regards
> --
> Carlos
>
>