]> git.eshelyaron.com Git - emacs.git/commit
CL types: Accept both `byte-code-function` and `compiled-function`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 29 Apr 2022 19:29:35 +0000 (15:29 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 29 Apr 2022 19:29:35 +0000 (15:29 -0400)
commitacc985ae7cab66ceb4e81ab403e39e933e851d9e
tree1f88b589cf6479aa62b473e74b5a8fed75a8ccd7
parentb566454449f3df4df9813eedd3a0934fc1b547eb
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.
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-preloaded.el
lisp/emacs-lisp/nadvice.el