From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#4023: mwheel.el uses (point) instead of point-before-scroll Date: Fri, 04 Dec 2009 21:46:36 -0500 Message-ID: <87iqcm5e9f.fsf@stupidchicken.com> Reply-To: Chong Yidong , 4023@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259982479 17597 80.91.229.12 (5 Dec 2009 03:07:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 03:07:59 +0000 (UTC) Cc: 4023@emacsbugs.donarmstrong.com To: Glenn Morris , gabriele balducci Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 04:07:52 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGkzv-0007df-Ko for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 04:07:51 +0100 Original-Received: from localhost ([127.0.0.1]:45878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGkzv-0000CJ-AP for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2009 22:07:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGkze-00007D-1T for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2009 22:07:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGkzY-0008WU-Bp for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2009 22:07:32 -0500 Original-Received: from [199.232.76.173] (port=45008 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGkzY-0008WR-6o for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2009 22:07:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40770) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGkzX-0007r4-Qa for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2009 22:07:28 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB537O6D026541; Fri, 4 Dec 2009 19:07:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB52t6k0024729; Fri, 4 Dec 2009 18:55:06 -0800 Resent-Date: Fri, 4 Dec 2009 18:55:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 05 Dec 2009 02:55:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4023 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by 4023-submit@emacsbugs.donarmstrong.com id=B4023.125998121124240 (code B ref 4023); Sat, 05 Dec 2009 02:55:06 +0000 Original-Received: (at 4023) by emacsbugs.donarmstrong.com; 5 Dec 2009 02:46:51 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pantheon-po42.its.yale.edu (pantheon-po42.its.yale.edu [130.132.50.101]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB52kndg024236 for <4023@emacsbugs.donarmstrong.com>; Fri, 4 Dec 2009 18:46:50 -0800 Original-Received: from furry (dhcp128036204089.central.yale.edu [128.36.204.89]) (authenticated bits=0) by pantheon-po42.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nB52kaM7017215 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 4 Dec 2009 21:46:37 -0500 Original-Received: by furry (Postfix, from userid 1000) id BE114C071; Fri, 4 Dec 2009 21:46:36 -0500 (EST) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 04 Dec 2009 22:07:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33230 Archived-At: > Just upgraded emacs to 23.1 and noted the following issue, related > (apparently) to mwheel.el. > > Here is how to (hopefully) reproduce the problem. > > In an emacs window (under X): > > => set the point with mouse-1 > => select a region with mouse-3 some lines below > => now scroll down with the mouse wheel so that the bottom of the > selected region scrolls `out' of the upper edge of the emacs window > (the highlighted region must disappear) > => extend the region by mouse-3 again > => paste the region with mouse-2 somewhere (e.g. in a clean buffer) > > Result: > only the text between the *visible* top of the window and the end of > the region has been pasted. I.e. all works as if the beginning of > the selected region had moved the first line of the visible portion > of the buffer. > > This contrasts with the behavior in emacs-22.3, where extending the > region while scrolling down with the wheel used to work as expected > (by me): the contents of the region started from the point set with > mouse-1 at the beginning. > > The (correct) behavior in 23.1 is obtained if scrolling is performed > with the side bar, instead of the wheel (and also if the scroll with > the wheel does not make the bottom of the region fly out of the upper > window edge) This change was made in response to a complaint by Glenn Morris, about the behavior you desire: http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg00409.html Double-click with left mouse to select the word "tree" from "This directory tree...". The word "tree" is highlighted with region face. Scroll down with mouse-wheel so that "tree" goes off the top of the screen. Scroll back up with mouse-wheel. Now the region has been extended to cover a lot more text. The further I scroll down initially, the more is highlighted. I have no preference for either behavior, because I don't use the mouse wheel much. Either way, we should probably make the scrollbar and mouse wheel behavior consistent, though. Glenn, what do you think?