From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#18590: 24.3.93; Scrolling changes/forgets selection Date: Tue, 30 Sep 2014 08:06:48 -0700 (PDT) Message-ID: <69d7a976-96b7-49c6-bb96-e69f2fa8c93e@default> References: <<87k34li7ex.fsf@moondust.localdomain>> <<83ppedkwrs.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412089657 23179 80.91.229.3 (30 Sep 2014 15:07:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 15:07:37 +0000 (UTC) Cc: 18590@debbugs.gnu.org To: Eli Zaretskii , "N. Jackson" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 30 17:07:28 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XYz1U-0000N0-12 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 17:07:28 +0200 Original-Received: from localhost ([::1]:43856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYz1T-0004WN-Iz for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 11:07:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYz1G-0004S3-FZ for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 11:07:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYz15-0004OC-Rs for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 11:07:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYz15-0004Nf-OW for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 11:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XYz15-0004OI-2k for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 11:07:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Sep 2014 15:07:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18590-submit@debbugs.gnu.org id=B18590.141208962016863 (code B ref 18590); Tue, 30 Sep 2014 15:07:03 +0000 Original-Received: (at 18590) by debbugs.gnu.org; 30 Sep 2014 15:07:00 +0000 Original-Received: from localhost ([127.0.0.1]:56458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYz11-0004Nu-0z for submit@debbugs.gnu.org; Tue, 30 Sep 2014 11:06:59 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:23988) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYz0v-0004Nb-Ul for 18590@debbugs.gnu.org; Tue, 30 Sep 2014 11:06:54 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s8UF6qoH013827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Sep 2014 15:06:53 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8UF6pj3020204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Sep 2014 15:06:51 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s8UF6nZ7008443; Tue, 30 Sep 2014 15:06:50 GMT In-Reply-To: <<83ppedkwrs.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93913 Archived-At: > > 4. Scroll the window with the scroll bar or the mouse. > > The selection changes as the window is scrolled up and down. >=20 > Yes, there's a good reason: a selection in Emacs is always between > point and the mark, and when scrolling causes it to go off the > displayed portion of the buffer, Emacs moves point to bring it back > into view, which changes the selected portion of the text. Yes, it's well known. But IMO not ideal behavior. The same thing does not happen if you select with the mouse (e.g. drag the selection past the window bottom. And it does not happen if you set mark and then use C-v to move past the window bottom. The problem is not that point is kept in the window - that is desirable. The point is the lack of a mark at the other end, so the selected text shrinks (that's not really a problem, since what is no longer selected is off-screen anyway), and you cannot use C-x C-x to get back the region you had. That loss of the original region is the problem. With the other methods I just mentioned, you can use C-x C-x to get the region back. I see the problem only when the scroll bar is used. Not sure what the OP meant by "or with the mouse". Perhaps he meant a window-scrolling mouse. I don't see the problem when I drag the selection using the mouse, at least. And if I select a bit of text and then use the mouse wheel to scroll the window I don't see the problem either. In that case, the scrolling immediately deselects the text, unlike the case when I use the scroll bar.