summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-07-05 17:22:52 +0000
committerGerd Moellmann <gerd@gnu.org>2000-07-05 17:22:52 +0000
commit1d462b4c3d79f705616326aa2bf7540293a66619 (patch)
tree2108b86d997e62ab33489d1c777133275cb9b252 /src/print.c
parentc582c42d938ba058a5eaab0b6c8fbc8ca107e923 (diff)
downloademacs-1d462b4c3d79f705616326aa2bf7540293a66619.tar.gz
(print_error_message): If Vsignaling_function is set,
show it in *Messages*.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index 1943ed4082f..2ba860b857c 100644
--- a/src/print.c
+++ b/src/print.c
@@ -888,6 +888,16 @@ print_error_message (data, stream)
tail = Fcdr_safe (data);
GCPRO1 (tail);
+ /* If we know from where the error was signaled, show it in
+ *Messages*. */
+ if (!NILP (Vsignaling_function) && SYMBOLP (Vsignaling_function))
+ {
+ char *name = XSYMBOL (Vsignaling_function)->name->data;
+ message_dolog (name, strlen (name), 0, 0);
+ message_dolog (": ", 2, 0, 0);
+ Vsignaling_function = Qnil;
+ }
+
/* For file-error, make error message by concatenating
all the data items. They are all strings. */
if (!NILP (file_error) && CONSP (tail))