mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
CL types: Accept both byte-code-function and compiled-function
`type-of` returns `compiled-function` for bytecode functions, but the predicate for those objects is called `byte-code-function-p`, So accept both `compiled-function` and `byte-code-function` as type names for those objects. * lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types): Add `byte-code-function`. * lisp/emacs-lisp/cl-macs.el (byte-code-function, compiled-function, subr): New types.
This commit is contained in:
parent
b566454449
commit
acc985ae7c
3 changed files with 15 additions and 2 deletions
|
|
@ -59,7 +59,17 @@
|
|||
;; accepted, pretty much.
|
||||
(marker number-or-marker atom)
|
||||
(overlay atom) (float number atom) (window-configuration atom)
|
||||
(process atom) (window atom) (subr atom) (compiled-function function atom)
|
||||
(process atom) (window atom)
|
||||
;; FIXME: We'd want to put `function' here, but that's only true
|
||||
;; for those `subr's which aren't special forms!
|
||||
(subr atom)
|
||||
;; FIXME: We should probably reverse the order between
|
||||
;; `compiled-function' and `byte-code-function' since arguably
|
||||
;; `subr' and also "compiled functions" but not "byte code functions",
|
||||
;; but it would require changing the value returned by `type-of' for
|
||||
;; byte code objects, which risks breaking existing code, which doesn't
|
||||
;; seem worth the trouble.
|
||||
(compiled-function byte-code-function function atom)
|
||||
(module-function function atom)
|
||||
(buffer atom) (char-table array sequence atom)
|
||||
(bool-vector array sequence atom)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue