Said another way, the transclusion of <<actions>> in the tag-picker, fails if the transclusion contains nested variables:
\procedure tag-actions()
\procedure update()
<!-- do things -->
\end update
<<update>>
\end tag-actions
<$transclude $variable=tag-picker tagField="my-tags" actions=<<tag-actions>> />
Output:
Workaround: Move the inner procedure outside the outer procedure.
EDIT: updated the code for clarity
pmario
November 23, 2023, 6:26pm
2
TW-core does not have an action-timeout-widget. So link to the plugin is missing.
Don’t be distracted by Eric’s plugin. It was excluded from the test conducted on tiddlywiki.com
Understand too, it’s not the execution of the outer proc that’s at issue. tag-picker can’t handle the actions transclusion.
Thank you @CodaCoder I’m investigating, but just to point out that screenshots of code can be frustrating, it would be much more useful to have snippets that I can copy and paste.
Thank you @CodaCoder there’s a draft fix here:
master ← allow-pragmas-in-core-macro-actions
opened 09:24PM - 23 Nov 23 UTC
As reported by @CodaCodr [over at talk.tiddlywiki.org](https://talk.tiddlywiki.o… rg/t/actions-attribute-of-tag-picker-macro-does-not-support-nested-procs-variables/8518), the core "tag-picker" macro does not permit pragmas within the "actions" parameter:
```
\procedure tag-actions()
\procedure update()
\end update
<<update>>
\end tag-actions
<$transclude $variable=tag-picker tagField="my-tags" actions=<<tag-actions>> />
```
The result is garbled:
