(byte-compile-inline-expand): Fetch actual bytecode
before inlining a lazy function.
This commit is contained in:
parent
7f4d365716
commit
2b29a37688
1 changed files with 5 additions and 3 deletions
|
@ -221,9 +221,11 @@
|
|||
(if (symbolp fn)
|
||||
(byte-compile-inline-expand (cons fn (cdr form)))
|
||||
(if (byte-code-function-p fn)
|
||||
(cons (list 'lambda (aref fn 0)
|
||||
(list 'byte-code (aref fn 1) (aref fn 2) (aref fn 3)))
|
||||
(cdr form))
|
||||
(progn
|
||||
(fetch-bytecode fn)
|
||||
(cons (list 'lambda (aref fn 0)
|
||||
(list 'byte-code (aref fn 1) (aref fn 2) (aref fn 3)))
|
||||
(cdr form)))
|
||||
(if (not (eq (car fn) 'lambda)) (error "%s is not a lambda" name))
|
||||
(cons fn (cdr form)))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue