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 20:59:36 +0300 Message-ID: <83zjdhj8fr.fsf@gnu.org> References: <87k34li7ex.fsf@moondust.localdomain> <83ppedkwrs.fsf@gnu.org> <87ppedf1iw.fsf@moondust.localdomain> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1412100033 6560 80.91.229.3 (30 Sep 2014 18:00:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 18:00:33 +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 20:00:26 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 1XZ1iq-0006zw-Hm for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 20:00:24 +0200 Original-Received: from localhost ([::1]:44672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ1iq-0004Eu-98 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 14:00:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ1ie-00049D-7Q for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 14:00:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZ1iW-0000QS-IT for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 14:00:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ1iW-0000PS-FP for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 14:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZ1iV-0002jg-Qo for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2014 14:00:04 -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 18:00: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.141209998910438 (code B ref 18590); Tue, 30 Sep 2014 18:00:03 +0000 Original-Received: (at 18590) by debbugs.gnu.org; 30 Sep 2014 17:59:49 +0000 Original-Received: from localhost ([127.0.0.1]:56584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZ1iG-0002iH-ID for submit@debbugs.gnu.org; Tue, 30 Sep 2014 13:59:49 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:37962) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZ1iD-0002i6-Kx for 18590@debbugs.gnu.org; Tue, 30 Sep 2014 13:59:46 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NCQ00F006N2AB00@a-mtaout20.012.net.il> for 18590@debbugs.gnu.org; Tue, 30 Sep 2014 20:59:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCQ00F7P7BHFB00@a-mtaout20.012.net.il>; Tue, 30 Sep 2014 20:59:42 +0300 (IDT) In-reply-to: <87ppedf1iw.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:93934 Archived-At: > From: nljlistbox2@gmail.com (N. Jackson) > Date: Tue, 30 Sep 2014 14:42:31 -0300 > > At 11:28 -0300 on Tuesday 2014-09-30, Eli Zaretskii wrote: > > > 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. > > Hmm... I see. But why does point need to be visible? Emacs always keeps point visible, it's one of the cornerstones of its display engine. > It makes sense to me for a program to scroll the window to keep point in > view when the user moves point; but it doesn't make sense to me for a > program to move point when the user scrolls the window. Others will disagree. It should be possible to implement a mode where point doesn't have to be in view, but doing so will require non-trivial changes. Patches welcome. > Anyway, if point must be moved, please can it be put back automatically > where it belongs when the user scrolls the window back and point's > correct location is once again in view? Consider this a wishlist request. Try customizing scroll-preserve-screen-position. > I'd also like to have typing, or any command involving point, scroll the > window so that the correct location of point comes into view and then act on > point where it belongs rather than where Emacs has "randomly" moved it. > Of course this would have to be an optional behaviour, something like a > (setq point-follows-window nil). Consider it as second wishlist request? You can have that today if you type "C-SPC" before scrolling. Then typing "C-x C-x" after scrolling will get you back where you started.