You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning (doct): Old template expansion syntax detected. Upgrading :template value.
Substitute "* %doct(todo-state)" for "* %{todo-state}" in your configuration to prevent this warning in the future.
I have tried replacing %doct(todo-state) with %doct{todo-state} in the function above, as I see some discussion on this breaking change. However then the literal %doct{todo-state} appears in the capture. The warning appears each time I capture. I would be grateful for advice.
Note: I am using the latest commit of doct (9e7cbec) via straight.el
The text was updated successfully, but these errors were encountered:
Thanks for using doct!
Glad it was an easy fix for you. One other thing I noticed:
You should be able to use the symbol for your template function directly.
Thank you for creating doct! THe doct approach to create capture templates adds a lot of clarity in my mind and makes it easier.
Ah. Thanks for taking the time to observe that snippet :) I am new to elisp and am yet to figure out when I should use a lambda and when it is not necessary. I have corrected this in my doct config.
I've defined a few functions for templates like
which are plugged into templates for capture like
However for each capture, I get the warning
I have tried replacing %doct(todo-state) with %doct{todo-state} in the function above, as I see some discussion on this breaking change. However then the literal %doct{todo-state} appears in the capture. The warning appears each time I capture. I would be grateful for advice.
Note: I am using the latest commit of doct (9e7cbec) via straight.el
The text was updated successfully, but these errors were encountered: