* bug#8197: 24.0.50; completion-substring-try-completion bug ?
@ 2011-03-07 18:38 Andreas Politz
2011-10-07 2:09 ` Glenn Morris
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Politz @ 2011-03-07 18:38 UTC (permalink / raw)
To: 8197
(completion-substring-try-completion
"foo" '("bar-foo" "baz-foo") nil 2)
=> ("ba-foo" . 6)
I would expect this to return ("ba-foo" . 2) .
-ap
In GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
of 2010-06-13 on raven
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings: [..]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#8197: 24.0.50; completion-substring-try-completion bug ?
2011-03-07 18:38 bug#8197: 24.0.50; completion-substring-try-completion bug ? Andreas Politz
@ 2011-10-07 2:09 ` Glenn Morris
2011-10-07 6:42 ` Andreas Politz, INF|INF-I
0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2011-10-07 2:09 UTC (permalink / raw)
To: Andreas Politz; +Cc: 8197
Andreas Politz wrote:
> (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 don't know, because the function is undocumented
(I guess I have to look it up in completion-styles-alist?).
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#8197: 24.0.50; completion-substring-try-completion bug ?
2011-10-07 2:09 ` Glenn Morris
@ 2011-10-07 6:42 ` Andreas Politz, INF|INF-I
2011-10-07 12:53 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Politz, INF|INF-I @ 2011-10-07 6:42 UTC (permalink / raw)
To: Glenn Morris; +Cc: 8197
On Thu, 06 Oct 2011 22:09:05 -0400, Glenn Morris wrote
> Andreas Politz wrote:
>
> > (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 don't know, because the function is undocumented
> (I guess I have to look it up in completion-styles-alist?).
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.
-ap
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#8197: 24.0.50; completion-substring-try-completion bug ?
2011-10-07 6:42 ` Andreas Politz, INF|INF-I
@ 2011-10-07 12:53 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2011-10-07 12:53 UTC (permalink / raw)
To: Andreas Politz, INF|INF-I; +Cc: 8197
>> > (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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-07 12:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 18:38 bug#8197: 24.0.50; completion-substring-try-completion bug ? Andreas Politz
2011-10-07 2:09 ` Glenn Morris
2011-10-07 6:42 ` Andreas Politz, INF|INF-I
2011-10-07 12:53 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.