]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up Fx_begin_drag
authorPo Lu <luangruo@yahoo.com>
Tue, 28 Jun 2022 07:31:09 +0000 (15:31 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 28 Jun 2022 07:32:06 +0000 (15:32 +0800)
* src/xfns.c (Fx_begin_drag): Use FOR_EACH_TAIL instead of
iterating manually.

src/xfns.c

index 1372809da685c8bcb7514e01f19df48dadbfb63c..36920035d7fb21cae857e7074d163bda566dd32d 100644 (file)
@@ -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);