[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18051: [Emacs-diffs] trunk r117726: Add string collation.
From: |
Michael Albinus |
Subject: |
bug#18051: [Emacs-diffs] trunk r117726: Add string collation. |
Date: |
Fri, 29 Aug 2014 11:59:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
martin rudalics <rudalics@gmx.at> writes:
> I have not yet started to convert my
> fairly insane sorting functions to the new ones because mine are
> generally based on case-insensitiveness.
I'm just working on this. `string-collate-lessp' will have the signature
(string-collate-lessp S1 S2 &optional LOCALE IGNORE-CASE)
> Also I'm not yet sure how the
> new predicates will relate to functions like `compare-strings' (which
> IIUC is needed until now to make sorting case-insensitive),
Likely, there shall also be `collate-strings'.
> `sort-lines', `sort-subr' and the like. I'd hope that all of these
> could profit from the new functions.
`sort-subr' has PREDICATE as argument, you could take
`string-collate-lessp'. Maybe with some adaptions in `sort-subr', in
order to use also LOCALE and IGNORE-CASE.
`sort-lines' uses `sort-subr', without PREDIACATE. Might be also extended.
> martin
Best regards, Michael.
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., (continued)
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Paul Eggert, 2014/08/27
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Paul Eggert, 2014/08/27
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Eli Zaretskii, 2014/08/27
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Paul Eggert, 2014/08/27
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Michael Albinus, 2014/08/27
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Eli Zaretskii, 2014/08/27
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., martin rudalics, 2014/08/29
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation.,
Michael Albinus <=
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., martin rudalics, 2014/08/29
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Michael Albinus, 2014/08/29
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Eli Zaretskii, 2014/08/29
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Michael Albinus, 2014/08/29
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Eli Zaretskii, 2014/08/29
- bug#18051: [Emacs-diffs] trunk r117726: Add string collation., Michael Albinus, 2014/08/29