* src/xfns.c (Fx_begin_drag): Check that TARGETS is actually a
proper list.
* src/xterm.c (x_dnd_update_state): Remove debugging code.
int ntargets = 0;
char *target_names[2048];
Atom *target_atoms;
- Lisp_Object lval;
+ Lisp_Object lval, original;
Atom xaction;
CHECK_LIST (targets);
+ original = targets;
for (; CONSP (targets); targets = XCDR (targets))
{
error ("Too many targets");
}
+ CHECK_LIST_END (targets, original);
+
if (NILP (action) || EQ (action, QXdndActionCopy))
xaction = FRAME_DISPLAY_INFO (f)->Xatom_XdndActionCopy;
else if (EQ (action, QXdndActionMove))
unsigned int dummy_mask;
Window dummy, dummy_child, target;
- puts ("us");
-
if (XQueryPointer (dpyinfo->display,
dpyinfo->root_window,
&dummy, &dummy_child,