From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18590: 24.3.93; Scrolling changes/forgets selection Date: Tue, 30 Sep 2014 17:28:39 +0300 Message-ID: <83ppedkwrs.fsf@gnu.org> References: <87k34li7ex.fsf@moondust.localdomain> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1412087379 23873 80.91.229.3 (30 Sep 2014 14:29:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 14:29:39 +0000 (UTC) Cc: 18590@debbugs.gnu.org To: nljlistbox2@gmail.com (N. Jackson) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 30 16:29:27 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 1XYyQg-00077Z-3v for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 16:29:26 +0200 Original-Received: from localhost ([::1]:43695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYyQf-00031i-Og for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 10:29:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYyQQ-0002ri-9u for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 10:29:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYyQI-00046R-Ps for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 10:29:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYyQI-00046N-MG for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 10:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XYyQH-0003SQ-Qs for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 10:29: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: Tue, 30 Sep 2014 14:29:01 +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.141208733013273 (code B ref 18590); Tue, 30 Sep 2014 14:29:01 +0000 Original-Received: (at 18590) by debbugs.gnu.org; 30 Sep 2014 14:28:50 +0000 Original-Received: from localhost ([127.0.0.1]:56451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYyQ5-0003S0-Ej for submit@debbugs.gnu.org; Tue, 30 Sep 2014 10:28:49 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:58840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYyQ2-0003Rq-LO for 18590@debbugs.gnu.org; Tue, 30 Sep 2014 10:28:47 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NCP00L00XETPY00@a-mtaout22.012.net.il> for 18590@debbugs.gnu.org; Tue, 30 Sep 2014 17:28:45 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCP00LPPXJWLQ10@a-mtaout22.012.net.il>; Tue, 30 Sep 2014 17:28:45 +0300 (IDT) In-reply-to: <87k34li7ex.fsf@moondust.localdomain> X-012-Sender: halo1@inter.net.il 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:93911 Archived-At: > From: nljlistbox2@gmail.com (N. Jackson) > Date: Tue, 30 Sep 2014 10:07:02 -0300 > > 1. emacs -Q > > 2. Open a file "longer" than the window such as the Emacs README file. E.g. C-x f R E A D M E > > 3. C-x h ; Select all the text in the window. > > 4. Scroll the window with the scroll bar or the mouse. > > Expected behaviour: > > The text that is selected/highlighted remains selected/highlighted. > > Observed behaviour: > > The selection changes as the window is scrolled up and down. > > === > > Note 1: This also happens when the selected text was selected by holding > down the shift key and using the arrow keys to extend the selection, or > if the text is selected with the mouse. > > Note 2: When a smaller region is selected, the selection is sometimes > lost entirely after it is scrolled off the top or bottom of the window > and then scrolled back in to view. > > Note 3: I see the same (or similar) behaviour in Emacs 24.3.1 (which is > the oldest version I have on this system), but that does not make it > correct. Is this bizarre behaviour intended? It seems that if the user > makes a selection, Emacs should not change their selection without good > reason; is there a good reason? 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.