diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-01-27 02:40:13 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-01-27 02:40:13 +0000 |
commit | 7aec540f0c8899925a11cdf9876d93ed7bd7fc7f (patch) | |
tree | d4cac3e19ae8faf751b372bb40273fb627d20382 /lisp/emacs-lisp/byte-opt.el | |
parent | 75e9c107ee12a46b088644cf3dadef53eed8c9b8 (diff) | |
download | emacs-7aec540f0c8899925a11cdf9876d93ed7bd7fc7f.tar.gz emacs-7aec540f0c8899925a11cdf9876d93ed7bd7fc7f.tar.bz2 emacs-7aec540f0c8899925a11cdf9876d93ed7bd7fc7f.zip |
(byte-compile-inline-expand): Recalculate fn
after loading a file to define the function.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
-rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 5 |
1 files changed, 4 insertions, 1 deletions
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) |