[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master baec3c4974: Clean up Fx_begin_drag
From: |
Po Lu |
Subject: |
master baec3c4974: Clean up Fx_begin_drag |
Date: |
Tue, 28 Jun 2022 03:32:16 -0400 (EDT) |
branch: master
commit baec3c4974e3a3f31dc4c3cb58db780746bbe691
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Clean up Fx_begin_drag
* src/xfns.c (Fx_begin_drag): Use FOR_EACH_TAIL instead of
iterating manually.
---
src/xfns.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/xfns.c b/src/xfns.c
index 1372809da6..36920035d7 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master baec3c4974: Clean up Fx_begin_drag,
Po Lu <=