# HG changeset patch # User Karl Heuer # Date 797051042 0 # Node ID 31b8e30c1afb0066cb3105e1002689029db3efbf # Parent 577f71dad5c320bf58def7ea7b54a2a978472e43 (byte-compile-inline-expand): Fetch actual bytecode before inlining a lazy function. diff -r 577f71dad5c3 -r 31b8e30c1afb lisp/emacs-lisp/byte-opt.el --- a/lisp/emacs-lisp/byte-opt.el Wed Apr 05 01:17:41 1995 +0000 +++ b/lisp/emacs-lisp/byte-opt.el Wed Apr 05 03:04:02 1995 +0000 @@ -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)))))))