GNU bug report logs - #8197
24.0.50; completion-substring-try-completion bug ?

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> fh-trier.de>

Date: Mon, 7 Mar 2011 18:40:02 UTC

Severity: minor

Tags: notabug

Found in version 24.0.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 8197 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Andreas Politz\, INF|INF-I" <politza <at> fh-trier.de>
Cc: Glenn Morris <rgm <at> gnu.org>, 8197 <at> debbugs.gnu.org
Subject: Re: bug#8197: 24.0.50; completion-substring-try-completion bug ?
Date: Fri, 07 Oct 2011 08:53:27 -0400
>> > (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




This bug report was last modified 13 years and 33 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.