On Sun, Dec 18, 2011 at 12:34 AM, HansBKK <[email protected]> wrote: > I find the very short ?variables? ?commands? like "c" and "h" and "g.es" a > bit intimidating - are these generic Python, or defined by Leo's code?
These are conventions used throughout Leo. For a more complete list, see the top-level "Code" node in leoPy.leo. I strongly prefer the shortest possible names for commonly used objects, and the clearest possible names for less commonly used objects. This will not change. g is globally bound to the leoGlobals module. g.es isn't a convention, it is a reference to the es function in leoGlobals.py For more details, see Leo's scripting chapter: http://webpages.charter.net/edreamleo/scripting.html Also note that Leo's execute script command pre-defines c, g and p. This simple convention make Leo's scripting environment exceedingly powerful. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
