aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-23 22:17:46 +0000
committerGerd Moellmann1999-09-23 22:17:46 +0000
commit7ab1745fb8dbd09b9ff8f33945243041f199f7a6 (patch)
tree96e289e55c63b3764275f02b8baf862c43ae6608 /src
parent1b8f7fbca2579aee56fa722dcff42a06bdf18e4a (diff)
downloademacs-7ab1745fb8dbd09b9ff8f33945243041f199f7a6.tar.gz
emacs-7ab1745fb8dbd09b9ff8f33945243041f199f7a6.zip
(image_error): Use add_to_log.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 90df3eacb65..c0fb0f5cf2d 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5524,23 +5524,18 @@ valid_image_p (object)
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
5533static void 5533static void
5534image_error (format, arg1, arg2) 5534image_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