From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs highlighted region expanding with scrollbar movement Date: Sat, 22 Feb 2014 16:54:52 +0200 Message-ID: <83r46v2o5f.fsf@gnu.org> References: <5308B678.7000500@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1393080976 16809 80.91.229.3 (22 Feb 2014 14:56:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2014 14:56:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 22 15:56:23 2014 Return-path: Envelope-to: geh-help-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 1WHE05-0005y3-C8 for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 15:56:21 +0100 Original-Received: from localhost ([::1]:49832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHE05-0001MT-1c for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 09:56:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHDyn-0008LZ-JE for help-gnu-emacs@gnu.org; Sat, 22 Feb 2014 09:55:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHDyh-0003GX-Do for help-gnu-emacs@gnu.org; Sat, 22 Feb 2014 09:55:01 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:35669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHDyh-0003GS-5W for help-gnu-emacs@gnu.org; Sat, 22 Feb 2014 09:54:55 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N1E00H00JFMT400@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Sat, 22 Feb 2014 16:55:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1E00GB4K4HCF40@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Sat, 22 Feb 2014 16:55:29 +0200 (IST) In-reply-to: <5308B678.7000500@easy-emacs.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96173 Archived-At: > Date: Sat, 22 Feb 2014 15:38:48 +0100 > From: Andreas R=F6hler >=20 > Am 22.02.2014 12:46, schrieb Raimund Steger: > > Hi, > > > > I've only recently upgraded to Emacs 24 (GNU Emacs 24.3.1 (i386-p= c-solaris2.11, Motif Version 2.1.0)). Before, I used Emacs 22 for the= most part, but also Emacs 23 > > (briefly) in some environments. > > > > I noticed that apparently starting with Emacs 23, the highlighted= region behaves differently when dragging the scrollbar handle with t= he mouse. As the highlighted region > > moves out of the visible area of the window, the highlighting is = suddenly expanded to follow the point. This means it is not possible = anymore to leave something highlighted > > and pan around in the file at the same time. > > > > I have transient-mark-mode turned off, but changing its value doe= s not change the described behavior. Also, it is reproducible with 'e= macs -Q' and seems to happen for GTK > > builds as well. > > > > Is there some way to turn this off? Or am I missing something her= e? > > > > Thanks a lot, > > Raimund > > > > > > >=20 > May confirm this behavior with Emacs 24.3.50.1. of 2013-07-06 That's true, but I also see the same behavior in Emacs 22.1, so I'm not sure what change in behavior is being reported here. I don't think this changed at all, and couldn't (see below). > I.e. if region-end is expected to be scrolled downward out of sight= , cursor will remain at first line and thus expanding the region. Indeed: Emacs always moves point to keep it on display, so the region is expanded as well. > Would suggest a feature request, which would mean: no visible curso= r displayed in this case. You are actually asking for a much more significant change: to be abl= e to move point out if sight. There is some infrastructure for this in Emacs (see the window-vscroll function, for example), but user-level commands always force point to move to keep it on display. This has always been central to Emacs UI design.