# HG changeset patch # User Karl Heuer # Date 904939052 0 # Node ID e3e7eca80c069a5c45cd22350eee193d6454b01f # Parent 3852eb64cf0e2313430e79b282040a2c812ae004 (byte-compile-inline-expand): If the function definition is not a lambda, return original FORM with no error. diff -r 3852eb64cf0e -r e3e7eca80c06 lisp/emacs-lisp/byte-opt.el --- a/lisp/emacs-lisp/byte-opt.el Fri Sep 04 19:53:41 1998 +0000 +++ b/lisp/emacs-lisp/byte-opt.el Fri Sep 04 19:57:32 1998 +0000 @@ -278,8 +278,10 @@ (cons (list 'lambda (aref fn 0) (list 'byte-code string (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))))))) + (if (eq (car-safe fn) 'lambda) + (cons fn (cdr form)) + ;; Give up on inlining. + form)))))) ;;; ((lambda ...) ...) ;;;