From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#18590: 24.3.93; Scrolling changes/forgets selection Date: Wed, 13 Apr 2022 02:37:25 +0200 Message-ID: <87o815stru.fsf@gnus.org> References: <87k34li7ex.fsf@moondust.localdomain> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30843"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 18590@debbugs.gnu.org, Po Lu To: nljlistbox2@gmail.com (N. Jackson) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 13 02:38:22 2022 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 1neR1a-0007rL-N7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Apr 2022 02:38:22 +0200 Original-Received: from localhost ([::1]:53250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neR1Z-00016e-Es for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 20:38:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neR1G-00013I-SA for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 20:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neR1G-0003lM-JT for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 20:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neR1G-00026X-FS for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 20:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Apr 2022 00:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18590 X-GNU-PR-Package: emacs Original-Received: via spool by 18590-submit@debbugs.gnu.org id=B18590.16498102578056 (code B ref 18590); Wed, 13 Apr 2022 00:38:02 +0000 Original-Received: (at 18590) by debbugs.gnu.org; 13 Apr 2022 00:37:37 +0000 Original-Received: from localhost ([127.0.0.1]:50723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neR0r-00025s-1o for submit@debbugs.gnu.org; Tue, 12 Apr 2022 20:37:37 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:52370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neR0o-00025X-Sp for 18590@debbugs.gnu.org; Tue, 12 Apr 2022 20:37:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gNG5Jq9yM+iqn5Jj9ynQKIBoPaCPyOBgDkMkbAneFMM=; b=aN8iloovkMXRrXRQMETaPlCvP5 Ul1L8UjkKfog7y155/PkU+tibmKaSOScmmb/DAmkWV2W46SJ2Pc1TPz/0XBhN5YD/MSVkbt76t2YR UkuITFaDeL7XT3rteMU7ivwoErKEeG8y6uWygtZpGXqdTRWJNe2TEaZAP5cYlR9KBHIo=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neR0g-0005tM-83; Wed, 13 Apr 2022 02:37:28 +0200 In-Reply-To: <87k34li7ex.fsf@moondust.localdomain> (N. Jackson's message of "Tue, 30 Sep 2014 10:07:02 -0300") 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:229789 Archived-At: nljlistbox2@gmail.com (N. Jackson) writes: > After highlighting/selecting text in a window, scrolling the window > vertically with the scroll bar or with the mouse moves the selection so > that text intentionally selected is no longer selected. > > To reproduce: > > 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. (I'm going through old bug reports that unfortunately weren't resolved at the time.) This behaviour is still present in Emacs 29, and is due to Emacs always keeping point visible in the window, and the region being the area between point and mark. I remember Po Lu doing some work at allowing point to be outside the window, which would fix this issue, I think? But I forget what the state of that work is, so I've added Lu to the CC's; perhaps he has some comments. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no