Mercurial > emacs
comparison src/xfns.c @ 25800:609695887d08
(image_error): Use add_to_log.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 23 Sep 1999 22:17:46 +0000 |
parents | feaedc03dbc8 |
children | 190a99688b53 |
comparison
equal
deleted
inserted
replaced
25799:1c370ec939da | 25800:609695887d08 |
---|---|
5522 | 5522 |
5523 return valid_p; | 5523 return valid_p; |
5524 } | 5524 } |
5525 | 5525 |
5526 | 5526 |
5527 /* Display an error message with format string FORMAT and argument | 5527 /* Log error message with format string FORMAT and argument ARG. |
5528 ARG. Signaling an error, e.g. when an image cannot be loaded, | 5528 Signaling an error, e.g. when an image cannot be loaded, is not a |
5529 is not a good idea because this would interrupt redisplay, and | 5529 good idea because this would interrupt redisplay, and the error |
5530 the error message display would lead to another redisplay. This | 5530 message display would lead to another redisplay. This function |
5531 function therefore simply displays a message. */ | 5531 therefore simply displays a message. */ |
5532 | 5532 |
5533 static void | 5533 static void |
5534 image_error (format, arg1, arg2) | 5534 image_error (format, arg1, arg2) |
5535 char *format; | 5535 char *format; |
5536 Lisp_Object arg1, arg2; | 5536 Lisp_Object arg1, arg2; |
5537 { | 5537 { |
5538 Lisp_Object args[3]; | 5538 add_to_log (format, arg1, arg2); |
5539 | |
5540 args[0] = build_string (format); | |
5541 args[1] = arg1; | |
5542 args[2] = arg2; | |
5543 Fmessage (make_number (DIM (args)), args); | |
5544 } | 5539 } |
5545 | 5540 |
5546 | 5541 |
5547 | 5542 |
5548 /*********************************************************************** | 5543 /*********************************************************************** |