]> git.eshelyaron.com Git - emacs.git/commit
New `sort` keyword arguments (bug#69709)
authorMattias EngdegÄrd <mattiase@acm.org>
Tue, 19 Mar 2024 12:03:47 +0000 (13:03 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 29 Mar 2024 12:33:31 +0000 (13:33 +0100)
commitb3d388dced8e29ed0808213ffa0a12fe750c7dd1
treee762ee89ce6e2fb68ff1908c6e398e4cf13fb036
parentfa17cd0c7dc7c3042fbc03259504239c5d11406e
New `sort` keyword arguments (bug#69709)

Add the :key, :lessp, :reverse and :in-place keyword arguments.
The old calling style remains available and is unchanged.

* src/fns.c (sort_list, sort_vector, Fsort):
* src/sort.c (tim_sort):
Add keyword arguments with associated new features.
All callers of Fsort adapted.
* test/src/fns-tests.el (fns-tests--shuffle-vector, fns-tests-sort-kw):
New test.
* doc/lispref/sequences.texi (Sequence Functions): Update manual.
* etc/NEWS: Announce.

(cherry picked from commit ae5f2c02bd2fc269e2cc32c8039d95fbf4225e69)
doc/lispref/sequences.texi
etc/NEWS
src/dired.c
src/fns.c
src/lisp.h
src/pdumper.c
src/sort.c
test/src/fns-tests.el