bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47127: 27.1; ido file completion sorting should respect ido-case-fol


From: Lars Ingebrigtsen
Subject: bug#47127: 27.1; ido file completion sorting should respect ido-case-fold, maybe?
Date: Fri, 24 Jun 2022 14:56:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

"Ryan C. Thompson" <rct@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]