Subject: bug#47127: 27.1; ido file completion sorting should respect ido-case-fold, maybe?

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 24 Jun 2022 14:56:11 +0200

"Ryan C. Thompson" <[email-masked]> 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