GNU bug report logs -
#39484
26.3; try-completion bug
Previous Next
Reported by: Wanrong Lin <wrglin <at> gmail.com>
Date: Fri, 7 Feb 2020 15:46:02 UTC
Severity: normal
Found in version 26.3
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
My understanding is: "ignoring case" here applies to the comparison
part, not the returning part. What makes me think so:
1. That variable name is "completion-ignore-case", meaning, complete as
much as possible ignoring case in comparison. But still, the action is
to "complete", and "complete" should use the original candidate text
when possible.
2. the first example did return the original text in the candidate
instead of the user input.
(let ((completion-ignore-case t))
(try-completion "xy" '("XyzD" "XyzAbc"))
)
==> "Xyz"
I am not saying other behaviors are "wrong", but not ideal in my view,
and there should be some rationale (performance?) behind it.
Wanrong
On 10/27/2020 4:28 PM, Andreas Schwab wrote:
> On Okt 27 2020, Wanrong Lin wrote:
>
>> I remember this behavior gives me problem in "ido" trying to expand the
>> user input to the max common matched text among all candidates, because
>> as you can see, the "expansion" using this method may end up returning
>> something that is not common at all for all the candidates.
> It isn't? "xyz" surely is a common prefix of "XyzD" and "XyzAbc",
> ignoring case.
>
> Andreas.
>
This bug report was last modified 3 years and 110 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.