[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add a function for building sort predicates
From: |
Eli Zaretskii |
Subject: |
Re: Add a function for building sort predicates |
Date: |
Sat, 03 Feb 2024 09:08:11 +0200 |
> From: Michael Heerdegen <michael_heerdegen@web.de>
> Cc: emacs-devel@gnu.org
> Date: Fri, 02 Feb 2024 21:11:26 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > > I consider this only as a start. With UI you mean customize? Anyway,
> > > the answer is probably YES.
> >
> > Even a simple data structure should be easier than a full-fledged
> > function.
>
> Not sure I understand what you are getting at.
I mean something like a list data structure which determines the order
of sorting keys. Users can define such data structures even if their
Lisp programming capabilities are relatively low or even nonexistent.
> In my code example, the data structure is the specification of the rules
> in the call - a nested list, suitable for this task. We need something
> that makes the structure being "applicable" by `sort' - this is the
> function implementation. I'm probably misunderstanding.
Or maybe I'm misunderstanding. AFAIU, you and Daniel had in mind
adding a function which is the sort predicate, as the means for
customization of sorting. My point is that users should preferably
not be required to customize such features by writing Lisp code.
Apologies if I misunderstood your suggestion, but in that case perhaps
you should explain it in more detail, including what will users have
to do to customize the sorting order.
- Add a function for building sort predicates, Michael Heerdegen, 2024/02/01
- Re: Add a function for building sort predicates, Daniel Mendler, 2024/02/01
- Re: Add a function for building sort predicates, Eli Zaretskii, 2024/02/01
- Re: Add a function for building sort predicates, Michael Heerdegen, 2024/02/01
- Re: Add a function for building sort predicates, Eli Zaretskii, 2024/02/01
- Re: Add a function for building sort predicates, Michael Heerdegen, 2024/02/02
- Re: Add a function for building sort predicates, Emanuel Berg, 2024/02/03
- Re: Add a function for building sort predicates,
Eli Zaretskii <=
- Re: Add a function for building sort predicates, Michael Heerdegen, 2024/02/03
Re: Add a function for building sort predicates, Michael Heerdegen, 2024/02/01
RE: [External] : Add a function for building sort predicates, Drew Adams, 2024/02/01