1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00

Improve autoload error reporting

* src/eval.c (Fautoload_do_load): Include the absolute file name
in the error message.
This commit is contained in:
Alexander Gramiak 2016-11-04 10:41:21 +02:00 committed by Eli Zaretskii
parent 86bec41906
commit e5d0efe8fc

View 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;