Hello Jed, Salut FrD
Thanks for your help, especially the ImportVariablesWidget <http://tiddlywiki.com/#ImportVariablesWidget> seems to be the solution. I had solved this more trivial by transcluding the function into the Tiddler. I guess I made the macros global macros that way...I got to checkt this.

Thanks Jan


FrD <[email protected] <mailto:[email protected]>> schrieb am Fr. 17. März 2017 um 13:34:

   Hi Jan,

   Have a look at http://tiddlywiki.com/#ImportVariablesWidget
   I've done a test with a TW of mine :
   - Put all the "steps" (macros you don't intend to share at the
   global level) in a tiddler named for instance "StepsMacros" (don't
   tag it with |$:/tags/Macro
   <http://tiddlywiki.com/#%24%3A%2Ftags%2FMacro>)|
   - Put your global level macro, say "MyGlobalMacro", in another
   tiddler tagged with |$:/tags/Macro
   <http://tiddlywiki.com/#%24%3A%2Ftags%2FMacro>)|
   - Modify this macro by inserting just after the \define :
   |
   <$importvariables filter="[prefix[StepsMacros]]">
   |
   - Don't forget to insert before \end :
   |
   </$importvariables>
   |

   It seems to work on my test file. I don't know if it's intended to
   work this way ...

   Regards

   FrD




   Le vendredi 17 mars 2017 11:15:31 UTC+1, Jan a écrit :

       Hello,
       I got a question regarding global macros:
       I learned he way make a macro work throughout the hole wiki is
       tagging the containing Tiddler $:/tags/Macro, which means that
       all macros defined there will be global.
       I most cases I just need one expression to work in other
       tiddlers but sometimes also quite a lot of steps (also defined
       as macros) to reach this goal.
       Is there a way of preventing these form beiing global macros?
       The question is important because i would have to change my
       naming strategy to find unique names for the steps.

       Yours Jan



-- 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]
   <mailto:[email protected]>.
   To post to this group, send email to [email protected]
   <mailto:[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/f3bf4dd2-a526-4323-9b02-b3931e4afe00%40googlegroups.com
   
<https://groups.google.com/d/msgid/tiddlywiki/f3bf4dd2-a526-4323-9b02-b3931e4afe00%40googlegroups.com?utm_medium=email&utm_source=footer>.
   For more options, visit https://groups.google.com/d/optout.

--
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/58CEF48D.7000201%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to