[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: change to try-completion behavior in 21.3?
From: |
Stefan Monnier |
Subject: |
Re: change to try-completion behavior in 21.3? |
Date: |
Sat, 17 Dec 2005 04:27:41 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>>> 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