>From e8e8544b1805d474921974faa92d040699074878 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Mon, 24 Oct 2016 23:20:54 -0600 Subject: [PATCH] Add extra information in autoload error * src/eval.c (Fautoload_do_load): Include the absolute file name in the error. --- src/eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eval.c b/src/eval.c index a9bad24..caeb791 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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; -- 2.9.3