A custom menu that seems correct, but does nothing.

Bug #1286914 reported by SegundoBob
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Fix Released
Undecided
Unassigned

Bug Description

This problem is demonstrated by the file settingsCreep01.leo attached to bug 1286909.

Test:

Open settingsCreep01.leo.

Alt-U, Alt-H

Note that nothing is displayed in the Log pane and no error message occurs.

Alt-X, hello-bugs

Note that "Hello, Bugs!" (colored green) is displayed in the log pane.

The menu is displayed correctly. The menu item command works as intended. But the menu seems never to invoke the intended command. Yet there is no indication of what is wrong.

I will not be surprised if there is a bug in settingsCreep01.leo, though I have spent way too much time trying to find it. If there is a bug in settingsCreep01.leo, then could Leo-Editor please generate an appropriate error message.

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/git/leo-editor/leo/core
global config dir: /home/ldi/git/leo-editor/leo/config
home dir: /home/bob06
reading settings in /home/ldi/git/leo-editor/leo/config/leoSettings.leo
docutils loaded
reading settings in /home/bob06/.leo/myLeoSettings.leo
Found /help
Abbreviations off
reading settings in /home/ldi/tmp/settingsCreep01.leo
Found /help
Abbreviations off
reading: /home/ldi/tmp/settingsCreep01.leo

Revision history for this message
SegundoBob (bhossley) wrote :

This bug is probably related to bug:

https://bugs.launchpad.net/leo-editor/+bug/1292207

But disabling plugins does not make the menu work in the demonstration file for this bug.

Revision history for this message
SegundoBob (bhossley) wrote :

I should have written:

Enabling plugins does not make the menu work in the demonstration file for this bug.

Revision history for this message
SegundoBob (bhossley) wrote :

When the "modscripting" plugin is disabled, a custom menu does nothing.

When the "modscripting" plugin is enabled, a custom menu functions correctly.

I recommend that this dependence on "modscripting" be eliminated. But until it is eliminated, it should be documented.

Revision history for this message
Edward K. Ream (edreamleo) wrote :
Changed in leo-editor:
status: New → Fix Released
Revision history for this message
Edward K. Ream (edreamleo) wrote :

This bug is invalid, though it could be called confusing.

The problem is that the ampersand should be in the body text, not the headline text:

Wrong:

    @item &hello-bugs
    &Hello, Bugs

Correct:

    @item hello-bugs
    &Hello, Bugs

In other words, the headline associates the item with a command, and the body text gives the menu text.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.