Skip to content

[Bug] mixing \procedure with \define from 3rd party plugins seems to cause problems #9161

@pmario

Description

@pmario

This issue is related to Revert "Migrate some old macros to new syntax" #9160

I did create an issue, so it is not forgotten.

The PR: Migrate some old macros to new syntax #8768 did update some macros to the new \procedure syntax.

What I found out so far:

  • core tiddler: $:/core/macros/list has a procedure: list-tagged-draggable
  • list-tagged-draggable has a default action \procedure list-tagged-draggable-drop-actions(tag) that defines the actions, that happen, when an element is dropped.
  • If a 3rd party plugin like Projectify -> $:/plugins/nico/projectify/macros/todo-list overwrite this drop-action, there is something wrong with the __variables__ eg:

The projectify drop actions look like this:

  • The __tag__ is missing in the action-log
  • so variable order is empty.

So the tagging with new tags fails, what was reported.

\define todo-list-drop-actions(tag)
<!-- Same as list-tagged-draggable-drop-actions, but removing the item from its old project and adding the todo tag. -->
<$action-listops $tiddler=<<actionTiddler>> $tags=<<todo-list-drop-tags>>/>
<!-- Save the current ordering of the tiddlers with this tag -->
<$set name="order" filter="[<__tag__>tagging[]]">

<$action-log/>

I do not know, where this comes from atm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions