diff options
| author | Alexander Gramiak | 2016-11-04 10:41:21 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-11-04 10:41:21 +0200 |
| commit | e5d0efe8fc4130593a899a9699ed8a95b953df3a (patch) | |
| tree | 6732aaca1b5b393ac7b6821544aa448f88d64553 | |
| parent | 86bec41906c17f3b96288bd34ac0f835cde88a27 (diff) | |
| download | emacs-e5d0efe8fc4130593a899a9699ed8a95b953df3a.tar.gz emacs-e5d0efe8fc4130593a899a9699ed8a95b953df3a.zip | |
Improve autoload error reporting
* src/eval.c (Fautoload_do_load): Include the absolute file name
in the error message.
| -rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. */) | |||
| 1988 | Lisp_Object fun = Findirect_function (funname, Qnil); | 1988 | Lisp_Object fun = Findirect_function (funname, Qnil); |
| 1989 | 1989 | ||
| 1990 | if (!NILP (Fequal (fun, fundef))) | 1990 | if (!NILP (Fequal (fun, fundef))) |
| 1991 | error ("Autoloading failed to define function %s", | 1991 | error ("Autoloading file %s failed to define function %s", |
| 1992 | SDATA (Fcar (Fcar (Vload_history))), | ||
| 1992 | SDATA (SYMBOL_NAME (funname))); | 1993 | SDATA (SYMBOL_NAME (funname))); |
| 1993 | else | 1994 | else |
| 1994 | return fun; | 1995 | return fun; |