1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
emacs/doc
Stefan Monnier 706403f2aa (cl-type-of): New function to return more precise types (bug#69739)
* src/data.c (Fcl_type_of): New function, extracted from `Ftype_of`.
Make it return more precise types for symbols, integers, and subrs.
(Ftype_of): Use it.
(syms_of_data): Define the corresponding new symbols and defsubr
the new function.

* doc/lispref/objects.texi (Type Predicates): Document it.

* src/comp.c (emit_limple_insn): Use `Fcl_type_of`.

* lisp/emacs-lisp/cl-preloaded.el (subr): Demote it to `atom`.
(subr-native-elisp, subr-primitive): Add `compiled-function` as
parent instead.
(special-form): New type.

* lisp/obsolete/eieio-core.el (cl--generic-struct-tag):
* lisp/emacs-lisp/cl-generic.el (cl--generic-typeof-generalizer):
Use `cl-type-of`.
cl--generic--unreachable-types): Update accordingly.

test/src/data-tests.el (data-tests--cl-type-of): New test.
2024-03-18 09:29:47 -04:00
..
emacs Merge from origin/emacs-29 2024-03-16 05:47:41 -04:00
lispintro Fix info-xref-tests 2024-01-13 20:38:34 +02:00
lispref (cl-type-of): New function to return more precise types (bug#69739) 2024-03-18 09:29:47 -04:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc Update modus-themes to their 4.4.0 version 2024-03-17 18:46:15 +02:00
translations ; Further copyedits of doc/translations/README. 2024-02-19 15:19:54 +02:00