(byte-compile-inline-expand): Fix bug
authorGerd Moellmann <gerd@gnu.org>
Thu, 30 Mar 2000 11:38:38 +0000 (11:38 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 30 Mar 2000 11:38:38 +0000 (11:38 +0000)
trying to `load' the symbol of an autoload instead of the file
recorded in the autoload.  Fix error messages.

lisp/emacs-lisp/byte-opt.el

index 24770a1..78f14ab 100644 (file)
                 (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)