S. S., no problem. I touched on it in a post earlier in the topic. My use case is that I've been using TW for a couple of months now and am starting to include some macros in my tiddlers that are either defined in standalone macro tiddlers or in non-core plugins. One example is Mohammad's <<dbadge>> <https://kookma.github.io/status-badge/> macro which I rolled into a home-made plugin. When I realised that a call to a missing macro does not result in any error display in the tiddler, it occurred to me that there would be no warning if a macro tiddler was deleted or, if it is defined in a plugin, disappeared or was renamed in a plugin upgrade. That got me to wondering if I could include a tiddlyscript snippet at the top of any tiddlers which rely on non-core macros to check for the existence of said macros and display a warning if the macro is not defined.
I realise this is worrying about a very unlikely scenario but, if I'm going to be using TW as a personal notebook for years, and likely across multiple computers in that time, I tend to be paranoid about "future-proofing" and chains of dependency. There may be better ways to approach this issue; if so, I'd love to hear about them. Regards, David. On Friday, 1 March 2019 13:16:51 UTC+9:30, S. S. wrote: > > David, it was an interesting question. Could you share what happened for > you to want that feature, and how you are using it? > > On a similar track - the code in the <<dumpvariables>> macro can show the > values of all variables and macros that exist at that position in the > widget tree. I wonder if it would it be useful for developers (or even > users who type macros) to be able to have a way to check against that list > to see if ANY variable that is in the widget tree is undefined, and that > could be used to trigger a warning on any refresh and display the undefined > macros/variables? > > Regards > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0b2f7c7d-8513-4bb9-92d6-d21cd69dbb57%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

