[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: One more string functions change
From: |
Drew Adams |
Subject: |
RE: One more string functions change |
Date: |
Sat, 28 Jun 2014 06:48:45 -0700 (PDT) |
> > (let ((case-fold-search t)) (string-lessp s1 s2))
> > We already have a global variable for this. Why add an argument for it?
>
> Value of case-fold-search doesn't affect string-lessp and string-equal.
Oh, right. What was the reason for that? Anyone know?
> > How many occurrences of such a programming cliche for `string-lessp'
> > do you find in the Emacs sources, for example? One? Zero?
>
> Just ask grep:
>... lisp/gnus/gnus-util.el:1440: (string-equal (downcase x) (downcase y))
>...
> > or: (string-lessp (upper s1) (upper s2))
To me, that cliche seems just as easy & clear as (string-lessp s1 s2 t).
- Re: One more string functions change, (continued)
- Re: One more string functions change, Dmitry Antipov, 2014/06/28
- Re: One more string functions change, Eli Zaretskii, 2014/06/28
- Re: One more string functions change, Dmitry Antipov, 2014/06/28
- Re: One more string functions change, Eli Zaretskii, 2014/06/29
- Re: One more string functions change, Dmitry Antipov, 2014/06/29
- Re: One more string functions change, Eli Zaretskii, 2014/06/29
- Internationalize Emacs's messages [Was: Re: One more string functions change], Dmitry Antipov, 2014/06/30
- Re: One more string functions change, Yuri Khan, 2014/06/28
RE: One more string functions change, Drew Adams, 2014/06/27