From: Alexander Gramiak Date: Fri, 4 Nov 2016 08:41:21 +0000 (+0200) Subject: Improve autoload error reporting X-Git-Tag: emacs-26.0.90~1377 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e5d0efe8fc4130593a899a9699ed8a95b953df3a;p=emacs.git Improve autoload error reporting * src/eval.c (Fautoload_do_load): Include the absolute file name in the error message. --- 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;