* Fix defsubst missing inline Bug#42664
* lisp/emacs-lisp/byte-run.el (defsubst): Do not native compile defsubsts to have them always effective.
This commit is contained in:
parent
e5095f0fd3
commit
80d7f710f2
1 changed files with 6 additions and 1 deletions
|
@ -364,7 +364,12 @@ You don't need this. (See bytecomp.el commentary for more details.)
|
|||
'(nil byte-compile-inline-expand))
|
||||
(error "`%s' is a primitive" name))
|
||||
`(prog1
|
||||
(defun ,name ,arglist ,@body)
|
||||
(defun ,name ,arglist
|
||||
;; Never native-compile defsubsts as we need the byte
|
||||
;; definition in `byte-compile-unfold-bcf' to perform the
|
||||
;; inlining (Bug#42664).
|
||||
(declare (speed -1))
|
||||
,@body)
|
||||
(eval-and-compile
|
||||
(put ',name 'byte-optimizer 'byte-compile-inline-expand))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue