emacs-devel
[Top][All Lists]
Advanced

[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).



reply via email to

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