# HG changeset patch # User Gerd Moellmann # Date 954416318 0 # Node ID 6b92fbc04c2302c9a96b4f292c9d111c6f5b8e42 # Parent 561ff5634d32e287144c242d9923671bf42604fb (byte-compile-inline-expand): Fix bug trying to `load' the symbol of an autoload instead of the file recorded in the autoload. Fix error messages. diff -r 561ff5634d32 -r 6b92fbc04c23 lisp/emacs-lisp/byte-opt.el --- a/lisp/emacs-lisp/byte-opt.el Thu Mar 30 11:37:05 2000 +0000 +++ b/lisp/emacs-lisp/byte-opt.el Thu Mar 30 11:38:38 2000 +0000 @@ -260,16 +260,17 @@ (and (fboundp name) (symbol-function name))))) (if (null fn) (progn - (byte-compile-warn "attempt to inline %s before it was defined" name) + (byte-compile-warn "Attempt to inline `%s' before it was defined" + name) form) ;; else (if (and (consp fn) (eq (car fn) 'autoload)) (progn - (load (nth 1 fn)) + (load (nth 2 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)) + (error "File `%s' didn't define `%s'" (nth 2 fn) name)) (if (symbolp fn) (byte-compile-inline-expand (cons fn (cdr form))) (if (byte-code-function-p fn)