GNU bug report logs -
#11339
24.1.50; read-{buffer,file-name}-completion-ignore-case fails on non-ascii
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Wed, 25 Apr 2012 15:39:03 UTC
Severity: normal
Merged with 10211
Found in versions 24.0.92, 24.1.50, 27.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #70 received at 11339 <at> debbugs.gnu.org (full text, mbox):
>> I think the core of the bug is reproduced below:
>>
>> M-: (let ((completion-ignore-case t)) (try-completion "bah" '("bah" "bAh")))
>>
>> this returns t instead of returning "bah".
>> Probably an error in the handling of `matchcount` in `try-completion`.
>
> Are you sure?
I think so, yes.
> I think the return value of t is expected, per these
> comments in try-completion:
I don't think so:
> /* If this is an exact match except for case,
> use it as the best match rather than one that is not an
> exact match. This way, we get the case pattern
> of the actual match. */
This says that (try-completion "bah" '("bAh" "bahfoo")) should return "bAh"
> /* If there is more than one exact match ignoring case,
> and one of them is exact including case,
> prefer that one. */
This says (try-completion "bah" '("bah" "bAh")) should return "bah" rather
than "bAh", which also agrees with I said above (it should not return t).
> /* If there is no exact match ignoring case,
> prefer a match that does not change the case
> of the input. */
This says that (try-completion "bah" '("bAhbar" "bahfoo")) should return
"bah" rather than "bAh".
Stefan
This bug report was last modified 5 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.