> On May 6, 2026, at 14:52, Ihor Radchenko <[email protected]> wrote:
>
> Perry Smith <[email protected]> writes:
>
>>> Macro can work, I think.
>>
>> Can you be more specific? As far as I know, macros are unconditional.
>
> #+macro: device1 $1
> # #+macro: device1
> # #+macro: device2 $1
> #+macro: device2
>
> {{{device1(foo)}}}
> {{{device2(bar)}}}
>
> Then, comment/uncomment when you need.
> Can also go more fancy and use eval macros.
It appears that if the conditional text is itself a call to a macro, the output
gets confused. For example:
#+MACRO: bold +$1+
#+MACRO: device1
{{{device1({{{bold(blah)}}})}}}
results in the tailing )}}} being emitted.