bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8197: 24.0.50; completion-substring-try-completion bug ?


From: Stefan Monnier
Subject: bug#8197: 24.0.50; completion-substring-try-completion bug ?
Date: Fri, 07 Oct 2011 08:53:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

>> > (completion-substring-try-completion
>> >         "foo" '("bar-foo" "baz-foo") nil 2)
>> > => ("ba-foo" . 6)
>> > I would expect this to return ("ba-foo" . 2) .
>> Now it returns ("-foo" . 4).
>> Is this progress?

I think this is the correct answer, yes.

> That was a while ago, but in my understanding the function should
> return a partial substring completion (matching *ba*-foo* in this case) 
> and the index of the ambiguous part.

No, completion styles should not presume that they are used in
conjunction with some other style.  "completion-*-try-completion" should
return a string which matches (using the same style) the same set
of elements.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]