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#42150: 28.0.50; Bad mouse interaction in the scroll-margin region Date: Wed, 01 Jul 2020 17:13:23 +0300 Message-ID: <83366bz5ks.fsf@gnu.org> References: <87d05fs9ih.fsf@wavexx.thregr.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14874"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42150@debbugs.gnu.org To: Yuri D'Elia Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 01 16:20:38 2020 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 1jqdbJ-0003lm-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jul 2020 16:20:37 +0200 Original-Received: from localhost ([::1]:36560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqdbI-00009V-Ev for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jul 2020 10:20:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqdUw-0007I4-FR for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 10:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqdUw-0000DJ-5I for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 10:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jqdUw-0002zT-1J for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 10:14: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, 01 Jul 2020 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42150 X-GNU-PR-Package: emacs Original-Received: via spool by 42150-submit@debbugs.gnu.org id=B42150.159361282011448 (code B ref 42150); Wed, 01 Jul 2020 14:14:01 +0000 Original-Received: (at 42150) by debbugs.gnu.org; 1 Jul 2020 14:13:40 +0000 Original-Received: from localhost ([127.0.0.1]:53521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqdUZ-0002ya-UD for submit@debbugs.gnu.org; Wed, 01 Jul 2020 10:13:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqdUY-0002yN-0X for 42150@debbugs.gnu.org; Wed, 01 Jul 2020 10:13:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39623) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqdUS-0000AQ-5o; Wed, 01 Jul 2020 10:13:32 -0400 Original-Received: from [176.228.60.248] (port=4718 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jqdUQ-0006Y3-4q; Wed, 01 Jul 2020 10:13:31 -0400 In-Reply-To: <87d05fs9ih.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Wed, 01 Jul 2020 14:30:14 +0200) 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:182605 Archived-At: > From: Yuri D'Elia > Date: Wed, 01 Jul 2020 14:30:14 +0200 > > The combined behavior of the mouse and "scroll-margin" is a bit odd > currently. As discussed elsewhere, the problem here is to define alternative behavior that could make sense while preventing the downsides. > If you have a buffer which has "scroll-margin" enabled, and you click > anywhere in the scroll-margin region, the point is moved and the buffer > is immediately scrolled. That is true, but it's the intended behavior: a mouse clock sets point, and the scroll-margin says scroll the window when point enters the margin for any reason. So this does what it should do. > This in turn often results in the click becoming a "drag" instead, > selecting parts of the buffer. This part I couldn't reproduce. Maybe it's specific to the window-system you are using or to something else that isn't Emacs per se. > If feels like that moving the point when using the mouse shouldn't > trigger scroll-margin ever, since any action that causes a scroll would > immediately move the current target away and result in unintended > behavior. I don't think I understand what you mean by "move the current target away". Text scrolls, but it doesn't scroll out of the window, at least not in my testing. > I can see the same effect when performing a selection by > dragging: once you reach the scroll-margin area every single motion > events selects half the visible buffer, which is also broken. You need to select "carefully", and then it doesn't select half of the window, but only what you dragged across. But yes, this is a bit tricky. Once again, the problem is to decide what to do instead. Thanks.