Settings in file A propogate to file B when editing A and B is opened.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
leo-editor |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I'm editing Leo-Editor file A and I open Leo-Editor file B, it seems wrong that the settings in file A affect the editing of file B. My conclusion is based on the documentation:
http://
But I understand that I've described a complex scenario not explicitly addressed by the documentation. That is, the same Leo-Editor session is used to edit both file A and file B.
I don't know how many settings are involved. I have only investigated custom menu settings.
The settings that caused me to notice this were menu definitions. I note that the menus are in the file tab. Hence, visually it appears that the problem is not that the whole session has only one set of menus. In fact, file A never has duplicated menu items even when file B has duplicated menu items.
Mystery: The duplicated menu items sometimes disppear leaving just one instance of each menu item. I have not discovered what causes this.
Attached to this bug report is a simple test case settingsCreep01
Please begin by copying settingsCreep01.leo twice to create settingsCreep02.leo and settingsCreep03
I suggest the following tests:
Test 1:
Open settingsCreep01
Ctrl-O (open) settingsCreep02.leo
Note the warning message:
menu already exists: B&ugs
Note that the "Bugs' menu has 4 items (2-items repeated twice).
Ctrl-O (open) settingsCreep03.leo
Note the 2 warning messages:
menu already exists: B&ugs
menu already exists: B&ugs
Note that the "Bugs' menu has 6 items (2-items repeated 3 times).
Test 2:
Open settingsCreep01
Ctrl-O (open) settingsCreep02.leo
Note the warning message:
menu already exists: B&ugs
Note that the "Bugs' menu has 4 items (2-items repeated twice).
Alt-F, c, carriage-return (close settingsCreep02
Ctrl-O (open) settingsCreep02.leo
Note the 2 warning messages:
menu already exists: B&ugs
menu already exists: B&ugs
Note that the "Bugs' menu has 6 items (2-items repeated 3 times).
This is bad. This means that some memory of the menus of the previous open of settingsCreep02.leo hangs around after settingsCreep02.leo is closed.
Test System:
Xubuntu64 13.10
Leo Log Window
Leo 4.11 final, build 128f96dcd70d (branch: master), 2014-03-02 13:11:09
Python 2.7.5, qt version 4.8.4
linux2
setting leoID from os.getenv('USER'): 'bob06'
load dir: /home/ldi/
global config dir: /home/ldi/
home dir: /home/bob06
reading settings in /home/ldi/
docutils loaded
reading settings in /home/bob06/
Found /help
Abbreviations off
reading settings in /home/ldi/
Found /help
Abbreviations off
reading: /home/ldi/
Moved to github tracker: https:/ /github. com/leo- editor/ leo-editor/ issues/ 73