Rev 4987 is the latest of a series of updates that are, in essence, a backup of my recent work.
This rev contains many changes, but almost all are guarded by global switches so that the new code works exactly like the old code when the switches are off, as they are in this rev. As always, please use due caution, and please report any problems immediately. Here is the checkin log: QQQQQ Many changes relating to understanding Leo's load process, almost all guarded by g.new_config. These changes should have little effect when g.new_config is False. All unit tests pass and pylint is happy, but use due caution. In particular, a straightforward refactoring of g.openWithFileName was done "without a net" (without guards). However, I am happily using the result. leoCommands.py: - Added preliminary code for new_config lookup. leoConfig.py: - Moved GeneralSetting class to leoGlobals.py. leoGlobals.py: - Refactored g.openWithFileName to clarify the code and prepare for single-pass loading. - g.trace and g.pr now print immediately, regardless of the log status. - Moved GeneralSetting, KeyStroke and ShortcutInfo classes to here. This removes some tricky dependencies from the startup code. leoKeys.py: - Moved KeyStroke and ShortcutInfo classes to leoGlobals.py. - Moved definitions of isStroke, isStrokeOrNone and isShortcutInfo to leoGlobals.py runLeo.py: - Numerous changes preparing for the new loading/config scheme. All such changes are guarded by either g.new_config or g.new_load. Numerous files: - Improved tracing. - Changed code to reflect that several classes moved to leoGlobals.py. QQQQQ 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.
