GNU bug report logs - #23419
25.0.93; double-click-time

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: martin rudalics <rudalics@HIDDEN>; dated Mon, 2 May 2016 08:05:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) patch. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 23419 <at> debbugs.gnu.org:


Received: (at 23419) by debbugs.gnu.org; 15 Aug 2020 07:01:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 15 03:01:49 2020
Received: from localhost ([127.0.0.1]:54230 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k6qCK-0005lc-Us
	for submit <at> debbugs.gnu.org; Sat, 15 Aug 2020 03:01:49 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59440)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1k6qCI-0005lL-Md
 for 23419 <at> debbugs.gnu.org; Sat, 15 Aug 2020 03:01:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:46026)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1k6qCC-0003ZY-D6; Sat, 15 Aug 2020 03:01:40 -0400
Received: from [176.228.60.248] (port=4144 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1k6qCB-0005TY-7Q; Sat, 15 Aug 2020 03:01:40 -0400
Date: Sat, 15 Aug 2020 10:01:34 +0300
Message-Id: <83y2mgjstt.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <CADwFkmkz=6jMU+2JeQB9MQ_H2vFLBrrTC8z4pZdEzZo_aeLwvg@HIDDEN>
 (message from Stefan Kangas on Fri, 14 Aug 2020 20:49:18 -0700)
Subject: Re: bug#23419: 25.0.93; double-click-time
References: <572709CA.5010605@HIDDEN>
 <CADwFkmkz=6jMU+2JeQB9MQ_H2vFLBrrTC8z4pZdEzZo_aeLwvg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 23419
Cc: rudalics@HIDDEN, 23419 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Kangas <stefan@HIDDEN>
> Date: Fri, 14 Aug 2020 20:49:18 -0700
> Cc: 23419 <at> debbugs.gnu.org
> 
> In the attached patch I add a new function `mouse-double-click-time'
> which always returns a number.  This seems better than adding
> specialized logic everywhere to handle the various cases.

I don't see how this resolves the issue pointed out by Martin.  How do
we know that the problematic callers will DTRT with the arbitrary
values your function returns for t and nil?  Using a very large number
for t may be a good approximation (although I'm not even sure in that
case), but using zero for nil?

I'm afraid there's no way around auditing each caller and determining
what those non-numerical values mean in each case.  For example, I'd
actually suggest to avoid the call to sit-for in the nil case, because
a double-click will never be "on the way" in that case.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23419; Package emacs. Full text available.
bug Marked as found in versions 28.0.50. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) patch. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 23419 <at> debbugs.gnu.org:


Received: (at 23419) by debbugs.gnu.org; 15 Aug 2020 03:49:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 14 23:49:31 2020
Received: from localhost ([127.0.0.1]:54119 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k6nCE-0006eN-B6
	for submit <at> debbugs.gnu.org; Fri, 14 Aug 2020 23:49:30 -0400
Received: from mail-yb1-f179.google.com ([209.85.219.179]:40425)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1k6nC8-0006dz-Vx
 for 23419 <at> debbugs.gnu.org; Fri, 14 Aug 2020 23:49:28 -0400
Received: by mail-yb1-f179.google.com with SMTP id q3so6280925ybp.7
 for <23419 <at> debbugs.gnu.org>; Fri, 14 Aug 2020 20:49:24 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:in-reply-to:references:user-agent
 :mime-version:date:message-id:subject:to:cc;
 bh=87JWAYgUua1vzZGTczYhFB12vF1lfRyx3OVWTZODS48=;
 b=I9r4umAv7CczbZq+Kw/QKRWr1S25ETzv8mg3ijPosTixY819gjwPhYQJK8A5Iy8xVZ
 1tvsGrGBv9GtJQ5z+3rGA0FePlH855S9CC3hCAF5H9r0JwV5XAXO7MqylqbFfuwhII1S
 0ju9lBzf8i2LeN0TMd1sfPjg9Oz93bmI1Z+1hyA8K4oc/ARClF5Bg4UD7Yt0EmAMwQPt
 4Z9Vsk1JBTH04l9Rw/d2xmWtbIKeCSS1WZ9Uvw51wybUSChqKkIPOx+jCJJwIitQSa04
 Rm+OyYulf8pEkBkME5bO9kqzg5W2gVsQENIWCc8ms/iizj6FVzJ6a+T52sZ3VhAIO/wO
 wXCA==
X-Gm-Message-State: AOAM531LkEtuYBD+AR6oLqMcYzRhCMpsFNCUHIu7v5Ou7ixLHZCvzrMY
 nJbKDZKYpAKhX03rRKJXYxiTV9mXAzyALj7d8Mc=
X-Google-Smtp-Source: ABdhPJwPxoCM5/PlAtWo/kRxTfUygxXDdrmtLl+9IT5dGLq1+Tmz0pqxNGZBEXeOPpxc04fvyLoAF8RDb4GCNPG5kZU=
X-Received: by 2002:a5b:410:: with SMTP id m16mr7479014ybp.309.1597463359423; 
 Fri, 14 Aug 2020 20:49:19 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 14 Aug 2020 20:49:18 -0700
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <572709CA.5010605@HIDDEN> (martin rudalics's message of "Mon, 02
 May 2016 10:03:22 +0200")
References: <572709CA.5010605@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Date: Fri, 14 Aug 2020 20:49:18 -0700
Message-ID: <CADwFkmkz=6jMU+2JeQB9MQ_H2vFLBrrTC8z4pZdEzZo_aeLwvg@HIDDEN>
Subject: Re: bug#23419: 25.0.93; double-click-time
To: martin rudalics <rudalics@HIDDEN>
Content-Type: multipart/mixed; boundary="00000000000014a2fb05ace26ced"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 23419
Cc: 23419 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000014a2fb05ace26ced
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

tags 23419 + patch
thanks

martin rudalics <rudalics@HIDDEN> writes:

> The documentation of =E2=80=98double-click-time=E2=80=99 is as:
>
>   Maximum time between mouse clicks to make a double-click.
>   Measured in milliseconds.  The value nil means disable double-click
>   recognition; t means double-clicks have no time limit and are detected
>   by position only.
>
> However, most uses of =E2=80=98double-click-time=E2=80=99 in the lisp dir=
ectory silently
> assume that the value is a number which typically fails in =E2=80=98sit-f=
or=E2=80=99s
> like, for example, in help.el's
>
>   (not (sit-for (/ double-click-time 1000.0) t))
>
> when =E2=80=98double-click-time=E2=80=99 is either t or nil.
>
> Could someone out there who understands the semantics of these
> =E2=80=98sit-for=E2=80=99s please fix them.  I can eventually do that mys=
elf but these
> semantics are yet pretty unclear to me.

I can confirm this.  To reproduce the issue in help.el, use:

0. emacs -Q
1. (setq double-click-time nil)
2. C-h k mouse-1

In the attached patch I add a new function `mouse-double-click-time'
which always returns a number.  This seems better than adding
specialized logic everywhere to handle the various cases.

Any comments?

Best regards,
Stefan Kangas

--00000000000014a2fb05ace26ced
Content-Type: text/x-diff; charset="US-ASCII"; 
	name="0001-Fix-handling-double-click-time-nil-or-t-Bug-23419.patch"
Content-Disposition: attachment; 
	filename="0001-Fix-handling-double-click-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orICAgIChzaG91bGQgKD0gKG1v
dXNlLWRvdWJsZS1jbGljay10aW1lKSAwKSkpCisgIChsZXQgKChkb3VibGUtY2xpY2stdGltZSB0
KSkKKyAgICAoc2hvdWxkIChudW1iZXJwIChtb3VzZS1kb3VibGUtY2xpY2stdGltZSkpKSkKKyAg
KGxldCAoKGRvdWJsZS1jbGljay10aW1lICcoaW52YWxpZCkpKQorICAgIChzaG91bGQgKD0gKG1v
dXNlLWRvdWJsZS1jbGljay10aW1lKSAwKSkpKQorCiAoZXJ0LWRlZnRlc3QgYnVnMjMyODgtdXNl
LXJldHVybi12YWx1ZSAoKQogICAiSWYgYG1vdXNlLW9uLWxpbmstcCcgcmV0dXJucyBhIHN0cmlu
ZywgaXRzIGZpcnN0IGNoYXJhY3RlciBpcyB1c2VkLiIKICAgKGNsLWxldGYgKCh1bnJlYWQtY29t
bWFuZC1ldmVudHMgJygoZG93bi1tb3VzZS0xIG5pbCAxKSAobW91c2UtMSBuaWwgMSkpKQotLSAK
Mi4yOC4wCgo=
--00000000000014a2fb05ace26ced--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23419; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 May 2016 08:04:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 02 04:04:25 2016
Received: from localhost ([127.0.0.1]:32992 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ax8q9-0005nz-Mn
	for submit <at> debbugs.gnu.org; Mon, 02 May 2016 04:04:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49207)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1ax8q8-0005nn-2T
 for submit <at> debbugs.gnu.org; Mon, 02 May 2016 04:04:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1ax8pt-0001Ly-Jv
 for submit <at> debbugs.gnu.org; Mon, 02 May 2016 04:04:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50378)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1ax8pt-0001KX-Gl
 for submit <at> debbugs.gnu.org; Mon, 02 May 2016 04:04:09 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40119)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1ax8ph-0004aO-Ug
 for bug-gnu-emacs@HIDDEN; Mon, 02 May 2016 04:04:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1ax8pU-0001Ep-94
 for bug-gnu-emacs@HIDDEN; Mon, 02 May 2016 04:03:50 -0400
Received: from mout.gmx.net ([212.227.17.20]:63519)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1ax8pT-0001CO-W4
 for bug-gnu-emacs@HIDDEN; Mon, 02 May 2016 04:03:44 -0400
Received: from [192.168.1.101] ([212.95.7.50]) by mail.gmx.com (mrgmx101) with
 ESMTPSA (Nemesis) id 0M3vCA-1bnazO0cTa-00rZZo for
 <bug-gnu-emacs@HIDDEN>; Mon, 02 May 2016 10:03:32 +0200
Message-ID: <572709CA.5010605@HIDDEN>
Date: Mon, 02 May 2016 10:03:22 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Bug-Gnu-Emacs <bug-gnu-emacs@HIDDEN>
Subject: 25.0.93; double-click-time
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: qu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rlxo7UFCKwwBPPeHtFx3MkbSISiC9tWKis0dyD4JLQFc6ATOEo4wUY3eCS
 hsntGjuRnb5V1vRydNdc3rSgE+LmQ==
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

The documentation of =E2=80=98double-click-time=E2=80=99 is as:

   Maximum time between mouse clicks to make a double-click.
   Measured in milliseconds.  The value nil means disable double-click
   recognition; t means double-clicks have no time limit and are detected=

   by position only.

However, most uses of =E2=80=98double-click-time=E2=80=99 in the lisp dir=
ectory silently
assume that the value is a number which typically fails in =E2=80=98sit-f=
or=E2=80=99s
like, for example, in help.el's

   (not (sit-for (/ double-click-time 1000.0) t))

when =E2=80=98double-click-time=E2=80=99 is either t or nil.

Could someone out there who understands the semantics of these
=E2=80=98sit-for=E2=80=99s please fix them.  I can eventually do that mys=
elf but these
semantics are yet pretty unclear to me.

TIA, martin





Acknowledgement sent to martin rudalics <rudalics@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23419; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 16 Aug 2020 21:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.