]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve autoload error reporting
authorAlexander Gramiak <agrambot@gmail.com>
Fri, 4 Nov 2016 08:41:21 +0000 (10:41 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 4 Nov 2016 08:41:21 +0000 (10:41 +0200)
* src/eval.c (Fautoload_do_load): Include the absolute file name
in the error message.

src/eval.c

index a9bad2491fae6885ef0b0485c10bc05e979038c0..caeb791c19bd891ffd3bd93c565985e19a8c5a27 100644 (file)
@@ -1988,7 +1988,8 @@ it defines a macro.  */)
       Lisp_Object fun = Findirect_function (funname, Qnil);
 
       if (!NILP (Fequal (fun, fundef)))
-       error ("Autoloading failed to define function %s",
+       error ("Autoloading file %s failed to define function %s",
+              SDATA (Fcar (Fcar (Vload_history))),
               SDATA (SYMBOL_NAME (funname)));
       else
        return fun;