On Fri, Nov 11, 2011 at 2:04 PM, Terry Brown <[email protected]> wrote:
> The bookmarks_show command adds a pane of bookmarks as shown in the
> attached.
[...]

When I run this command from trunk I got a traceback:

Traceback (most recent call last):
  File "C:\Users\btheado\apps\leo-editor-trunk\leo\plugins\qtGui.py",
line 8639, in eventFilter
    ret = k.masterKeyHandler(event)
  File "C:\Users\btheado\apps\leo-editor-trunk\leo\core\leoKeys.py",
line 2877, in masterKeyHandler
    done,val = k.doMode(event,state,stroke)
  File "C:\Users\btheado\apps\leo-editor-trunk\leo\core\leoKeys.py",
line 2981, in doMode
    handler(event)
  File "C:\Users\btheado\apps\leo-editor-trunk\leo\core\leoKeys.py",
line 2337, in repeatComplexCommandHelper
    c.commandsDict [last](event)
  File "C:\Users\btheado\apps\leo-editor-trunk\leo\core\leoCommands.py",
line 936, in minibufferCallback
    retval = function(keywords)
  File "C:\Users\btheado\.leo\scriptFile.py", line 89, in bookmarks_show
    bmd = BookMarkDisplay(event['c'])
  File "C:\Users\btheado\.leo\scriptFile.py", line 116, in __init__
    c.db['_leo_bookmarks_show'] = str(v.gnx)
AttributeError: 'NoneType' object has no attribute 'gnx'

Should this line in BookMarkDisplay.__init__:

            c.db['_leo_bookmarks_show'] = str(v.gnx)

be this instead?

            c.db['_leo_bookmarks_show'] = str(self.v.gnx)


Also, I was thinking from the docstring that the bookmarks_show
command would search for and use @bookmark subtrees whereas it seems
to actually operate on the current selected subtree.  I think it would
help if the doc mentioned that only the double click cares about
@bookmarks.

Brian

-- 
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.

Reply via email to