summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-09-23 22:17:46 +0000
committerGerd Moellmann <gerd@gnu.org>1999-09-23 22:17:46 +0000
commit7ab1745fb8dbd09b9ff8f33945243041f199f7a6 (patch)
tree96e289e55c63b3764275f02b8baf862c43ae6608
parent1b8f7fbca2579aee56fa722dcff42a06bdf18e4a (diff)
downloademacs-7ab1745fb8dbd09b9ff8f33945243041f199f7a6.tar.gz
(image_error): Use add_to_log.
-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)
}
-/* Display an error message with format string FORMAT and argument
- ARG. Signaling an error, e.g. when an image cannot be loaded,
- is not a good idea because this would interrupt redisplay, and
- the error message display would lead to another redisplay. This
- function therefore simply displays a message. */
+/* Log error message with format string FORMAT and argument ARG.
+ Signaling an error, e.g. when an image cannot be loaded, is not a
+ good idea because this would interrupt redisplay, and the error
+ message display would lead to another redisplay. This function
+ therefore simply displays a message. */
static void
image_error (format, arg1, arg2)
char *format;
Lisp_Object arg1, arg2;
{
- Lisp_Object args[3];
-
- args[0] = build_string (format);
- args[1] = arg1;
- args[2] = arg2;
- Fmessage (make_number (DIM (args)), args);
+ add_to_log (format, arg1, arg2);
}