1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 20:50:52 -08:00
emacs/doc
Mattias Engdegård 1232ab31c6 Add value< (bug#69709)
It's a general-purpose polymorphic ordering function, like `<` but
for any two values of the same type.

* src/data.c (syms_of_data): Add the `type-mismatch` error.
(bits_word_to_host_endian): Move...
* src/lisp.h (bits_word_to_host_endian): ...here, and declare inline.
* src/fns.c (Fstring_lessp): Extract the bulk of this function to...
(string_cmp): ...this 3-way comparison function, for use elsewhere.
(bool_vector_cmp, value_cmp, Fvaluelt): New.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns, pure-fns):
Add `value<`, which is pure and side-effect-free.
* test/src/fns-tests.el (fns-value<-ordered, fns-value<-unordered)
(fns-value<-type-mismatch, fns-value<-symbol-with-pos)
(fns-value<-circle, ert-deftest fns-value<-bool-vector): New tests.
* doc/lispref/sequences.texi (Sequence Functions):
* doc/lispref/numbers.texi (Comparison of Numbers):
* doc/lispref/strings.texi (Text Comparison):
Document the new value< function.
* etc/NEWS: Announce.
2024-03-29 11:39:38 +01:00
..
emacs Prevent Android OS task trimming from deleting Emacs frames 2024-03-29 08:26:48 +08:00
lispintro Fix info-xref-tests 2024-01-13 20:38:34 +02:00
lispref Add value< (bug#69709) 2024-03-29 11:39:38 +01:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc Improve ert-font-lock assertion parser (Bug#69714) 2024-03-28 11:40:27 +02:00
translations ; Further copyedits of doc/translations/README. 2024-02-19 15:19:54 +02:00