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 #11 received at 8197 <at> debbugs.gnu.org (full text, mbox):

From: "Andreas Politz, INF|INF-I" <politza <at> fh-trier.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 8197 <at> debbugs.gnu.org
Subject: Re: bug#8197: 24.0.50; completion-substring-try-completion bug ?
Date: Fri, 7 Oct 2011 08:42:33 +0200
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





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.