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:
parent
86bec41906
commit
e5d0efe8fc
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue