From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#28658: 27.0.50; [PATCH] double/triple clicking in xterm-mouse-mode doesn't respect mouse position Date: Thu, 05 Oct 2017 18:14:39 -0600 Message-ID: <87376xxhcg.fsf@gmail.com> References: <87r2unyh79.fsf@gmail.com> <83zi95x4of.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507248919 18626 195.159.176.226 (6 Oct 2017 00:15:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 00:15:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 28658@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 06 02:15:10 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 1e0GIH-0003Vi-0X for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Oct 2017 02:15:09 +0200 Original-Received: from localhost ([::1]:42456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0GIM-0004FR-RI for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Oct 2017 20:15:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0GID-0004Em-HW for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0GIA-0005vu-D4 for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0GIA-0005vL-9O for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0GI9-0005or-Po for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Oct 2017 00:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28658-submit@debbugs.gnu.org id=B28658.150724889022336 (code B ref 28658); Fri, 06 Oct 2017 00:15:01 +0000 Original-Received: (at 28658) by debbugs.gnu.org; 6 Oct 2017 00:14:50 +0000 Original-Received: from localhost ([127.0.0.1]:51959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0GHx-0005o9-PJ for submit@debbugs.gnu.org; Thu, 05 Oct 2017 20:14:50 -0400 Original-Received: from mail-it0-f53.google.com ([209.85.214.53]:44670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0GHw-0005nt-7s for 28658@debbugs.gnu.org; Thu, 05 Oct 2017 20:14:48 -0400 Original-Received: by mail-it0-f53.google.com with SMTP id n195so839382itg.1 for <28658@debbugs.gnu.org>; Thu, 05 Oct 2017 17:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=IzyQztKL5NuzW7zsjYfVSS72gubL0zPqhD++rjqQmcA=; b=orBkw7HSXt9SjR/O4pTQwc1TwJZitGZXnnl0t928pf139XttpEuUGv9fm9Ub8GhFEo GIG+j6d5796POT5/yZOXj9vfrtdSsC+9Fv+WR5PjEJURmzGW+hf+5cUEhb6YzTOhbC9V lYf0eb/eJ/pw8OEz1Os+9YBFkBZCvnuf+IhqVZ9ymLvnMvv7lTzNOpfxZwOEooWNYwOh EACaznG+L2uZ/Ct2j95a9vYgRfl/MB/du3KGWlf7IbXB2TMBPrqnMlXrUuluNTL1aYdY vl4zq8QecCIMyazRXNxEW+U2BOZwZ0xhISNJcjB+CfPDLkKbT8t3wXl/LFcQy7ukUBv9 kAAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=IzyQztKL5NuzW7zsjYfVSS72gubL0zPqhD++rjqQmcA=; b=e9vdzbNPZPxohfkQFqbwgGmNLdwpQOYtrHXoNp4d+eXf+VOOaPcsfLt4bq7TtyxcQ1 yEurc3HnUQtUJRTFH53xjF09JaRmmuEwmp8nnXRv8SQVnozQd0W9BT79Zh2k2POsIjO3 l7QoiGcoGTZmejFtLbY+4/6x4C0pdBHnpzNvqu1JnvFlAsCfzR4yIarjHqElNzUI+oC/ VjedfGGVrWHytMTDUCjjDflApjHDcUBMcKLhrg+RzXm4DYdNBbacO5UDB93knfmV/9c5 yjKl73ZgEjxzLaMVc2z//DJtEoxxc4R5OIozlEl0BGYqukYVMzJpMYno8qPPrV5lS3uv bd3A== X-Gm-Message-State: AMCzsaWQwyjjFSmoNJTh20rMX5wYpS+TeNh86JFJYRTtg5mXG6zdOgPE 7GoFTVAzREOW/K9c1ofb5t853Q== X-Google-Smtp-Source: AOwi7QBgRnsZpzj5Sje+yIhM77KDFYScfhWKE+/Y9vibJeHKi5SBx1BvnYzzNyWOmDViJ5dT+Dv+Vw== X-Received: by 10.36.65.84 with SMTP id x81mr336369ita.61.1507248882236; Thu, 05 Oct 2017 17:14:42 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id 197sm117317ioo.68.2017.10.05.17.14.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 17:14:41 -0700 (PDT) In-Reply-To: <83zi95x4of.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 05 Oct 2017 13:36:00 +0300") 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:137992 Archived-At: Eli Zaretskii writes: >> It would be nice if it worked with pixel positions rather than >> character positions, but I'm not sure how to do that in a terminal >> Emacs. > > You can't: TTY frames cannot discern screen positions with resolution > of more than 1 character. > >> @@ -290,12 +292,14 @@ xterm-mouse-event >> (xterm-mouse--set-click-count event click-count))) >> ((not last-time) nil) >> ((and (> double-click-time (* 1000 (- this-time last-time))) >> + (eq x last-x) >> + (eq y last-y) > > IMO, 'eq' is not right here: this test should obey the value of > double-click-fuzz, whose units on TTY frames are 1/8 of a character. I don't understand how to use double-click-fuzz in TTY frames. You said that TTY frames can't discern screen position differences of less than a character, so then why are the units 1/8th of a character? Is there a way to get the mouse coordinate position in 1/8ths of a character to use double-click-fuzz?