1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-09 09:16:02 -08:00
emacs/test/src
Stefan Monnier e624bc6275 (primitive-function): New type
The type hierarchy and `cl-type-of` code assumed that `subr-primitive`
only applies to functions, but since it also accepts special-forms it makes
it an unsuitable choice since it can't be a subtype of `compiled-function`.
So, use a new type `primitive-function` instead.

* lisp/subr.el (subr-primitive-p): Fix docstring (bug#69832).
(primitive-function-p): New function.

* lisp/emacs-lisp/cl-preloaded.el (primitive-function): Rename
from `subr-primitive` since `subr-primitive-p` means something else.

* src/data.c (Fcl_type_of): Return `primitive-function` instead
of `subr-primitive` for C functions.
(syms_of_data): Adjust accordingly.

* test/src/data-tests.el (data-tests--cl-type-of): Remove workaround.
2024-03-18 09:32:49 -04:00
..
comp-resources Rename a number of native compiler functions 2024-02-11 15:26:12 +01:00
emacs-module-resources Be more systematic about parens in C source code 2024-01-20 17:28:53 -08:00
lread-resources
regex-resources * src/regex-emacs.c (analyze_first): Fix incorrect optimization 2023-09-27 13:29:50 -04:00
syntax-resources
alloc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
buffer-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
callint-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
callproc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
casefiddle-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
character-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
charset-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
chartab-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
cmds-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
coding-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
comp-tests.el Revert "Update some native comp tests" 2024-03-04 11:19:08 -05:00
data-tests.el (primitive-function): New type 2024-03-18 09:32:49 -04:00
decompress-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
doc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
editfns-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-module-tests.el emacs-module-tests.el (mod-test-non-local-exit-signal-test): Repair test 2024-01-04 16:35:53 -05:00
emacs-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eval-tests.el * test/src/eval-tests.el (eval-tests/default-value): Add new test case. 2024-02-19 15:12:42 +02:00
fileio-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
filelock-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
floatfns-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
fns-tests.el Allow equal user-defined hash table tests with different names 2024-01-31 12:48:48 +01:00
font-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
indent-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
inotify-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
json-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
keyboard-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
keymap-tests.el * lisp/keymap.el (define-keymap): Demote "duplicate def" to a warning 2024-01-20 15:03:05 -05:00
lcms-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
lread-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
marker-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
minibuf-tests.el Use obarray-make instead of make-vector to create obarrays 2024-02-23 13:02:27 +01:00
print-tests.el * src/print.c (print_object): Don't print empty hash-table data 2024-01-13 20:50:37 +01:00
process-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
regex-emacs-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
search-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
sqlite-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
syntax-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
textprop-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
thread-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
timefns-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
treesit-tests.el Merge from origin/emacs-29 2024-02-10 05:07:56 -05:00
undo-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
xdisp-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
xfaces-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
xml-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00