From 7aec540f0c8899925a11cdf9876d93ed7bd7fc7f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 27 Jan 1997 02:40:13 +0000 Subject: [PATCH] (byte-compile-inline-expand): Recalculate fn after loading a file to define the function. --- lisp/emacs-lisp/byte-opt.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index ef2880c7d9b..4b7b9f305e6 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -270,7 +270,10 @@ form) ;; else (if (and (consp fn) (eq (car fn) 'autoload)) - (load (nth 1 fn))) + (progn + (load (nth 1 fn)) + (setq fn (or (cdr (assq name byte-compile-function-environment)) + (and (fboundp name) (symbol-function name)))))) (if (and (consp fn) (eq (car fn) 'autoload)) (error "file \"%s\" didn't define \"%s\"" (nth 1 fn) name)) (if (symbolp fn) -- 2.39.2