diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 0b8f8824b4c..4e54e08ce14 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -3025,6 +3025,7 @@ byte-compile-out-toplevel (or (null (cdr rest)) (and (memq output-type '(file progn t)) (cdr (cdr rest)) + (eql (length body) (cdr (car rest))) (eq (car (nth 1 rest)) 'byte-discard) (progn (setq rest (cdr rest)) t)))) (setq maycall nil) ; Only allow one real function call.