From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: change to try-completion behavior in 21.3?
Date: Sat, 17 Dec 2005 04:27:41 -0500 [thread overview]
Message-ID: <877ja4oz29.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: yoijfyos9q0d.fsf@linus003.dd.chalmers.se
>>> Why should it ever return the capital letter W?
>> Because in your completion table, you have "W".
> "w" was also in the table.
Good point. Could you give us more detail about your context: why do you
have such a table with two redundant entries and why do you care which of
the two is returned?
> This change
> revision 1.237
> date: 2002-04-09 19:28:42 +0000; author: monnier; state: Exp; lines: +89 -47 [...]
> (Ftry_completion): Allow lambda forms and lists of strings for
> `alist'.
> Short-circuit the search as soon as it "failed". [...]
> added this piece of code (approximately)
> if (matchsize <= SCHARS (string)
> && matchcount > 1)
> /* No need to look any further. */
> break;
> When completion-ignore-case is t this doesn't necessarily find the
> best match _including case_ (AFAICS).
Yes, I'd completely forgotten about this one ;-)
Stefan
next prev parent reply other threads:[~2005-12-17 9:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-16 2:32 change to try-completion behavior in 21.3? bigfaceworm
2005-12-16 8:22 ` Anselm Helbig
2005-12-16 18:21 ` bigfaceworm
2005-12-18 21:05 ` Anselm Helbig
2005-12-17 2:33 ` Stefan Monnier
2005-12-17 6:49 ` Johan Bockgård
2005-12-17 9:27 ` Stefan Monnier [this message]
2005-12-17 18:30 ` bigfaceworm
2005-12-18 15:32 ` Stefan Monnier
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=877ja4oz29.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.