GNU bug report logs - #47127
27.1; ido file completion sorting should respect ido-case-fold, maybe?

Previous Next

Package: emacs;

Reported by: "Ryan C. Thompson" <rct <at> thompsonclan.org>

Date: Sat, 13 Mar 2021 21:58:02 UTC

Severity: normal

Found in version 27.1

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Ryan C. Thompson" <rct <at> thompsonclan.org>
Cc: 47127 <at> debbugs.gnu.org
Subject: bug#47127: 27.1; ido file completion sorting should respect ido-case-fold, maybe?
Date: Fri, 24 Jun 2022 14:56:11 +0200
"Ryan C. Thompson" <rct <at> thompsonclan.org> writes:

> ;; Returns nil, as expected
> (let ((ido-case-fold nil))
>   (ido-file-lessp "a" "B"))
>
> ;; Should return t, but currently returns nil
> (let ((ido-case-fold t))
>   (ido-file-lessp "a" "B"))
>
> ;; Should still return t because case is the only difference
> (let ((ido-case-fold t))
>   (ido-file-lessp "A" "a"))
>
> At least, this is what makes sense to me.

I think this function should respect ido-case-fold, but special-casing
equal strings here seems pretty unnatural to me -- if you want to ignore
case, you want to ignore case.

So I've now made this change in Emacs 29.

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




This bug report was last modified 3 years and 28 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.