Rename subr-native-elisp
to native-comp-function
(bug#71123)
Now that this type name is displayed in *Help*, it is more important to use a name that is less weird for the unsuspecting user. * lisp/emacs-lisp/cl-preloaded.el (cl-functionp): Adjust to new name of native function's type. (subr-native-elisp-p): Redefine as an obsolete alias. (native-comp-function): Rename from `subr-native-elisp` * src/data.c (Fcl_type_of): Return `Qnative_comp_function` i.s.o `Qsubr_native_elisp`. (Fnative_comp_function_p): Rename from `Fsubr_native_elisp_p`. (syms_of_data): Adjust accordingly. * src/doc.c (Fsubr_documentation): Use new `Fnative_comp_function_p` name.
This commit is contained in:
parent
0ae66c1917
commit
1a1170cde7
4 changed files with 14 additions and 9 deletions
|
@ -355,7 +355,7 @@ The `slots' (and hence `index-table') are currently unused."
|
|||
This is like `functionp' except that it returns nil for all lists and symbols,
|
||||
regardless if `funcall' would accept to call them."
|
||||
(memq (cl-type-of object)
|
||||
'(primitive-function subr-native-elisp module-function
|
||||
'(primitive-function native-comp-function module-function
|
||||
interpreted-function byte-code-function)))
|
||||
|
||||
(cl--define-built-in-type t nil "Abstract supertype of everything.")
|
||||
|
@ -465,7 +465,8 @@ The fields are used as follows:
|
|||
"Type of functions that have not been compiled.")
|
||||
(cl--define-built-in-type special-form (subr)
|
||||
"Type of the core syntactic elements of the Emacs Lisp language.")
|
||||
(cl--define-built-in-type subr-native-elisp (subr compiled-function)
|
||||
(define-obsolete-function-alias 'subr-native-elisp-p #'native-comp-function-p "30.1")
|
||||
(cl--define-built-in-type native-comp-function (subr compiled-function)
|
||||
"Type of functions that have been compiled by the native compiler.")
|
||||
(cl--define-built-in-type primitive-function (subr compiled-function)
|
||||
"Type of functions hand written in C.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue