When no choice is available I get an exception:
exception executing command
Traceback (most recent call last):
  File 
"C:\Users\Public\Documents\leo-editor\trunk\leo\core\leoCommands.py", line 
561, in doCommand
    val = command(event)
  File 
"C:\Users\Public\Documents\leo-editor\trunk\leo\core\leoEditCommands.py", 
line 576, in dynamicExpansion
    prefix = reduce(g.longestCommonPrefix,aList)
TypeError: reduce() of empty sequence with no initial value

This exception should be caught or guarded against with a gentler message 
of, say, "no completion found".

On Tuesday, October 2, 2012 8:53:15 AM UTC-7, Edward K. Ream wrote:
>
> On Mon, Oct 1, 2012 at 12:32 AM, F.S. <[email protected] <javascript:>> 
> wrote: 
> > The answer seems to be no based on the exchange here: 
> > 
> https://groups.google.com/forum/?fromgroups=#!searchin/leo-editor/dabbrev/leo-editor/3A4JOHqhJSU/W1DjTvooNCkJ
>  
> > 
> > Just want to be sure that my understanding is correct. 
>
> Rev 5472 makes dabbrev-completion and dabbrev-expands work as I 
> expect.  These are totally cool commands!  I welcome any suggestions 
> for improvement.  It looks like Leo should have default bindings for 
> these in leoSettings.leo. 
>
> Edward 
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/leo-editor/-/FEWLSod72msJ.
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