From e5d0efe8fc4130593a899a9699ed8a95b953df3a Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Fri, 4 Nov 2016 10:41:21 +0200 Subject: [PATCH] Improve autoload error reporting * src/eval.c (Fautoload_do_load): Include the absolute file name in the error message. --- src/eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eval.c b/src/eval.c index a9bad2491fa..caeb791c19b 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.39.5