Re: e0615b0: A major update re paths

2018-03-14 Thread Edward K. Ream
On Wednesday, March 14, 2018 at 9:12:03 AM UTC-5, Edward K. Ream wrote:
>
> This is a significant change because it changes backslashes to slashes on 
> Windows. As a result, cache entries may miss the first time you reload .leo 
> files.  Please report any problems immediately.
>

8ab89ca continues this work by replacing glob.glob by g.glob_glob 
everywhere in Leo's core.This ensures that the file names returned by 
glob.glob match the "regularized" names used elsewhere.

Remaining uses of glob.glob:

1. Several files in leo/external continue to use the "raw" glob.glob 
because they don't have assured access to leoGlobals.py.

2. launchLeo-unified.spec remains exactly as it was. Gratuitous changes to 
scripts like this are not recommended.

As often happens, I have done the work directly in devel so as to find 
problems as quickly as possible.

One would assume that these changes will have no effect whatever on 
platforms other than Windows, but one never knows.  

Please report any problems immediately.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: e0615b0: A major update re paths

2018-03-14 Thread Edward K. Ream
On Wednesday, March 14, 2018 at 9:12:03 AM UTC-5, Edward K. Ream wrote:

Here is the checkin log:
>

I forgot to mention that the apply/open_theme_file commands now *close* the 
to-be-opened theme file if it is not the only open file.  This does ensures 
that the theme is fully applied.

Not sure this hack will stay...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


e0615b0: A major update re paths

2018-03-14 Thread Edward K. Ream
This is a significant change because it changes backslashes to slashes on 
Windows. As a result, cache entries may miss the first time you reload .leo 
files.  Please report any problems immediately.

Here is the checkin log:

Fixed two related bugs: #663 and #809, and improved 
c_file.apply/open_theme_file.

#809: Themes dialog doesn't always start in leo/themes.
- qt_gui.py: Fixed bugs in qt_gui.runOpenFileDialog.

Fixed #663: Regularize slashes and back slashes
- This will invalidate caches the first time.
- Search for g.isWindows to see affected code.
- Added g.isWindows and g.isMac constants at start of leoGlobals.py.
- All relevant g.os_path* methods replace backslashes with slashes in file 
names.
- Tweaked a few unit tests.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.