From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48409: Text runs away before user can copy it Date: Wed, 19 May 2021 15:12:35 +0300 Message-ID: <831ra2rkgc.fsf@gnu.org> References: <87cztt4yg9.5.fsf@jidanni.org> <83fsypztd4.fsf@gnu.org> <87cztt9qdj.fsf@mail.linkov.net> <83mtsxxfo8.fsf@gnu.org> <87h7j12j93.fsf@mail.linkov.net> <83bl98rxqo.fsf@gnu.org> <83k0nvrhgg.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1645"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 48409@debbugs.gnu.org, juri@linkov.net To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 19 14:13:20 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljL4h-0000F5-Le for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 14:13:19 +0200 Original-Received: from localhost ([::1]:36634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljL4f-0002VC-Hl for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 08:13:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljL4S-0002Ux-7F for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 08:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljL4Q-0003RY-GA for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 08:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljL4Q-0005LZ-CF for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 08:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 May 2021 12:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48409 X-GNU-PR-Package: emacs Original-Received: via spool by 48409-submit@debbugs.gnu.org id=B48409.162142635420516 (code B ref 48409); Wed, 19 May 2021 12:13:02 +0000 Original-Received: (at 48409) by debbugs.gnu.org; 19 May 2021 12:12:34 +0000 Original-Received: from localhost ([127.0.0.1]:58323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljL3x-0005Kq-QD for submit@debbugs.gnu.org; Wed, 19 May 2021 08:12:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljL3w-0005Kd-He for 48409@debbugs.gnu.org; Wed, 19 May 2021 08:12:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46452) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljL3q-00035I-8L; Wed, 19 May 2021 08:12:26 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4092 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljL3p-00088X-Dp; Wed, 19 May 2021 08:12:25 -0400 In-Reply-To: (message from Alan Mackenzie on Tue, 18 May 2021 20:23:55 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206880 Archived-At: > Date: Tue, 18 May 2021 20:23:55 +0000 > Cc: juri@linkov.net, 48409@debbugs.gnu.org, acm@muc.de > From: Alan Mackenzie > > (i) A down-mouse event occurs in the miniwindow: > o - the mouse position relative to the top of the two-line miniwindow > is stored somewhere. > o - redisplay (or something) changes the two-line miniwindow into a > one-line miniwindow. > (ii) The up-mouse event occurs in the same place: > o - the mouse position is determined RELATIVE TO THE NEWLY SIZED > MINIWINDOW. > o - The y coordinate is significantly different from that of the > stored mouse position. > o - Due to this difference, make_lispy_event thinks the mouse has > moved, so returns a drag event. > > The above is the basic scenario. If the mouse is on the top line of the > miniwindow when the mouse is clicked, the returned y coordinate at (ii) > is in the mode line of the window above, and is determined relative to > that window. > > I don't have any workable ideas on how to fix this bug. The only idea > which springs to mind is to move from expressing mouse positions > relative to a window to expressing it relative to a frame. You could simply recalculate the position to be frame-relative, and if so, invoke the click-event binding. Right?