From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Andreas Politz\, INF|INF-I" <politza@fh-trier.de>
Cc: 8197@debbugs.gnu.org
Subject: bug#8197: 24.0.50; completion-substring-try-completion bug ?
Date: Fri, 07 Oct 2011 08:53:27 -0400 [thread overview]
Message-ID: <jwvwrchj784.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20111007063041.M3161@fh-trier.de> (Andreas Politz's message of "Fri, 7 Oct 2011 08:42:33 +0200")
>> > (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
prev parent reply other threads:[~2011-10-07 12:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvwrchj784.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=8197@debbugs.gnu.org \
--cc=politza@fh-trier.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.