Clean up Fx_begin_drag
* src/xfns.c (Fx_begin_drag): Use FOR_EACH_TAIL instead of iterating manually.
This commit is contained in:
parent
748e6c1e80
commit
baec3c4974
1 changed files with 2 additions and 4 deletions
|
@ -6910,10 +6910,9 @@ that mouse buttons are being held down, such as immediately after a
|
|||
original = targets;
|
||||
targets_arg = targets;
|
||||
|
||||
for (; CONSP (targets); targets = XCDR (targets))
|
||||
FOR_EACH_TAIL (targets)
|
||||
{
|
||||
CHECK_STRING (XCAR (targets));
|
||||
maybe_quit ();
|
||||
|
||||
if (ntargets < 2048)
|
||||
{
|
||||
|
@ -6943,9 +6942,8 @@ that mouse buttons are being held down, such as immediately after a
|
|||
original = action;
|
||||
|
||||
CHECK_LIST (action);
|
||||
for (; CONSP (action); action = XCDR (action))
|
||||
FOR_EACH_TAIL (action)
|
||||
{
|
||||
maybe_quit ();
|
||||
tem = XCAR (action);
|
||||
CHECK_CONS (tem);
|
||||
t1 = XCAR (tem);
|
||||
|
|
Loading…
Add table
Reference in a new issue