From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#29272: 26.0.90; "C-h k C-mouse-3" followed by menu selection asks for more keys Date: Wed, 29 Nov 2017 18:37:17 +0000 Message-ID: <20171129183717.GA8914@ACM> References: <83shdjn3ju.fsf@gnu.org> <83mv3rn02t.fsf@gnu.org> <20171114205449.GA8025@ACM> <87fu8xnc17.fsf@users.sourceforge.net> <83h8td4uw5.fsf@gnu.org> <5A1E724A.5030507@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1511980992 24909 195.159.176.226 (29 Nov 2017 18:43:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2017 18:43:12 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 29272@debbugs.gnu.org, Noam Postavsky To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 29 19:43:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eK7K7-00067B-Ut for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Nov 2017 19:43:08 +0100 Original-Received: from localhost ([::1]:44685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eK7KF-0007c0-Ac for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Nov 2017 13:43:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eK7K7-0007bf-6z for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2017 13:43:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eK7K4-0004h6-3d for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2017 13:43:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56819) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eK7K3-0004gr-V7 for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2017 13:43:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eK7K1-0001FS-T4 for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2017 13:43:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2017 18:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 29272-submit@debbugs.gnu.org id=B29272.15119809534753 (code B ref 29272); Wed, 29 Nov 2017 18:43:01 +0000 Original-Received: (at 29272) by debbugs.gnu.org; 29 Nov 2017 18:42:33 +0000 Original-Received: from localhost ([127.0.0.1]:37267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eK7JY-0001Eb-SU for submit@debbugs.gnu.org; Wed, 29 Nov 2017 13:42:33 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:50406 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1eK7JX-0001ER-3G for 29272@debbugs.gnu.org; Wed, 29 Nov 2017 13:42:31 -0500 Original-Received: (qmail 8202 invoked by uid 3782); 29 Nov 2017 18:42:29 -0000 Original-Received: from acm.muc.de (p548C768C.dip0.t-ipconnect.de [84.140.118.140]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 29 Nov 2017 19:42:28 +0100 Original-Received: (qmail 9043 invoked by uid 1000); 29 Nov 2017 18:37:17 -0000 Content-Disposition: inline In-Reply-To: <5A1E724A.5030507@gmx.at> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140548 Archived-At: Hello, Martin. On Wed, Nov 29, 2017 at 09:39:38 +0100, martin rudalics wrote: [ .... ] > BTW: Could someone please fix that > (not (sit-for (/ double-click-time 1000.0) t)) > form so it handles at least those values of `double-click-time' > described in its documentation: > 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. This is very strange indeed. I wasn't aware of the t and nil values for double-click-time, and of the six or seven uses of the variable in the Emacs Lisp code, there are at least two other uses, possibly more, which are likewise unaware of nil and t. Looking at the change log, double-click-time was changed into a Lisp variable, complete with values nil and t, by Jim Blandy in 1993, which is hardly recent. The documentation seems OK. So why have so many programmers been oblivious to these values? > I'm not sure what `sit-for' is supposed to return in those cases. Presumably we shouldn't be calling sit-for for double-click-time nil and t. But, when does a key sequence consisting of mouse buttons end when d-c-t is t? This is a more important question, I think, for C-h c and C-h k than for actually running commands. Personally, I think the value t is a bad idea, and we should obsolete it. I can't see the use case. Anybody who wants an indefinitely long double-click-time can use a near infinite integer, in which case anything that happens (or fails to happen) in C-h c and C-h k is her own fault. Surely, nobody is going to want to click the mouse, go off for a cup of coffee, come back, then complete a double click. Maybe we should interpret t as a moderately long finite interval, say 10 seconds. That still leaves anybody the option of using a larger interval. > Thanks, martin -- Alan Mackenzie (Nuremberg, Germany).