Subject: bug#39484: 26.3; try-completion bug

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 28 Oct 2020 10:35:05 +0100

Andreas Schwab <[email-masked]> writes:

> On Okt 27 2020, Wanrong Lin wrote:
>
>> The answer is not bad, matching at least one of the candidates. That makes
>> the answer to my original example even more odd:
>> (let ((completion-ignore-case t))
>>        (try-completion "xyz" '("XyzD" "XyzAbc"))
>>        )
>> ==> "xyz"
>
> That also matches one of the candidates (since case doesn't matter).

It does, but it's weird.  I mean, this pair of return values don't make
sense on any level:

(let ((completion-ignore-case t))
  (try-completion "xyz" '("XyzaD" "XyZabc")))
=> "Xyza"

(let ((completion-ignore-case t))
  (try-completion "xyz" '("XyZbD" "XyZabc")))
=> "xyz"  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no