arthur miller <[email protected]> writes:

>> If we document that (EXP), not EXP should be a valid expression, we are
>> good.

... actually we do. So, maybe docstring can still be improved further.

> In practice it will make it least more clear why using a variable failes :)
> It would be even better if the documentations spells out clearly: can't use
> variables only functions. Anyway, that still means the usage in a bigger
> template, like a file generator is more elaborate than needed. But if you
> don't want it, so it is.

Note that %(variable) can be ambiguous when variable is both a function
and a variable. In sexps, it is not ambiguous - (foo) must always be a
function call.

In theory, we may introduce another template element for variables, but
I never heard about such a need from anyone... You can send a feature
request marked [FR] if you want to get feedback. If enough people need
such feature, it can be added.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to