(compiled-function-p): New function (bug#56648)
* lisp/subr.el (compiled-function-p): New function. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-part1): * lisp/gnus/gnus.el (gnus): * lisp/mh-e/mh-e.el (mh-version): * lisp/emacs-lisp/macroexp.el (emacs-startup-hook): * lisp/emacs-lisp/cl-macs.el (compiled-function): * lisp/emacs-lisp/bytecomp.el (byte-compile-fdefinition) (byte-compile, display-call-tree): * lisp/emacs-lisp/byte-opt.el (<toplevel-end>): * lisp/emacs-lisp/advice.el (ad-compiled-p): * lisp/cedet/semantic/bovine.el (semantic-bovinate-stream): * lisp/loadup.el (macroexpand-all): * admin/unidata/unidata-gen.el (unidata--ensure-compiled): Use it. * lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates): Add entries for it. (pcase--split-pred): Use it. * lisp/help-fns.el (help-fns-function-description-header): Use `functionp`. (help-fns--var-safe-local): Use `compiled-function-p`.
This commit is contained in:
parent
1d3fe25690
commit
1faeef7924
17 changed files with 63 additions and 42 deletions
|
@ -2479,8 +2479,7 @@ If FOR-EFFECT is non-nil, the return value is assumed to be of no importance."
|
|||
;; itself, compile some of its most used recursive functions (at load time).
|
||||
;;
|
||||
(eval-when-compile
|
||||
(or (byte-code-function-p (symbol-function 'byte-optimize-form))
|
||||
(subr-native-elisp-p (symbol-function 'byte-optimize-form))
|
||||
(or (compiled-function-p (symbol-function 'byte-optimize-form))
|
||||
(assq 'byte-code (symbol-function 'byte-optimize-form))
|
||||
(let ((byte-optimize nil)
|
||||
(byte-compile-warnings nil))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue