[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags |
Date: |
Sat, 10 Feb 2018 14:02:16 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
Sebastian Reuße <address@hidden> writes:
> * org.el (org-sort-entries): Use collated sorting.
> (org-tags-sort-function): Use collated sorting.
> (org-string-collate-greaterp): Add helper-function to use as defcustom
> option, since there is no ‘string-collate-greaterp’ in Emacs.
Thank you.
However, Org 9.X still supports Emacs 24, so we cannot use
`string-collate-lessp without degrading gracefully to `string-lessp' in
these Emacsen.
We could add `org-string-collate-lessp' to "org-compat.el", which would
be an alias for `string-collate-lessp' on Emacs 25+ and to
`string-lessp' otherwise.
> +(defun org-string-collate-greaterp (s1 s2 &optional locale ignore-case)
> + "Return t if S1 is greater than S2 in collation order.
Return non-nil if...
We would also need tests for that feature.
WDYT?
Regards,
--
Nicolas Goaziou
- [O] [PATCH] Fix alphabetic sorting for headlines, tags, Sebastian Reuße, 2018/02/06
- [O] [PATCH] Fix alphabetic sorting for headlines, tags, Sebastian Reuße, 2018/02/06
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags,
Nicolas Goaziou <=
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags, Sebastian Reuße, 2018/02/11
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags, Nicolas Goaziou, 2018/02/11
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags, Sebastian Reuße, 2018/02/12
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags, Nicolas Goaziou, 2018/02/12
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags, Sebastian Reuße, 2018/02/12
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags, Nicolas Goaziou, 2018/02/12
- [O] [PATCH] Fix alphabetic sorting for headlines, tags, Sebastian Reuße, 2018/02/12
- Re: [O] [PATCH] Fix alphabetic sorting for headlines, tags, Nicolas Goaziou, 2018/02/12
- [O] [PATCH] Fix alphabetic sorting for headlines, tags, Sebastian Reuße, 2018/02/11