changeset 71985:ae7908422c59

(x_get_local_selection): Use signal_error.
author Kim F. Storm <storm@cua.dk>
date Tue, 18 Jul 2006 13:28:39 +0000
parents bb119ed4db49
children de36a2bee064
files src/macselect.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/macselect.c	Tue Jul 18 13:28:34 2006 +0000
+++ b/src/macselect.c	Tue Jul 18 13:28:39 2006 +0000
@@ -594,11 +594,9 @@
 		&& INTEGERP (XCAR (XCDR (check)))
 		&& NILP (XCDR (XCDR (check))))))
     return value;
-  else
-    return
-      Fsignal (Qerror,
-	       Fcons (build_string ("invalid data returned by selection-conversion function"),
-		      Fcons (handler_fn, Fcons (value, Qnil))));
+
+  signal_error ("Invalid data returned by selection-conversion function",
+		list2 (handler_fn, value));
 }