From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#6610: scrolling problem of emacs Date: Sun, 11 Jul 2010 18:44:26 +0000 Message-ID: <20100711184426.GD3134@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278875144 19543 80.91.229.12 (11 Jul 2010 19:05:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Jul 2010 19:05:44 +0000 (UTC) Cc: 6610@debbugs.gnu.org To: "Aeron.E. Wang" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 11 21:05:42 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OY1qL-0001SF-L4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Jul 2010 21:05:37 +0200 Original-Received: from localhost ([127.0.0.1]:33115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OY1lC-00077r-6F for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Jul 2010 15:00:18 -0400 Original-Received: from [140.186.70.92] (port=47585 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OY1l4-00077Q-2g for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2010 15:00:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OY1l2-0003KB-Fl for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2010 15:00:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55471) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OY1l2-0003K6-Cs for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2010 15:00:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OY1Lm-0005w9-Fm; Sun, 11 Jul 2010 14:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Jul 2010 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6610 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6610-submit@debbugs.gnu.org id=B6610.127887322322809 (code B ref 6610); Sun, 11 Jul 2010 18:34:02 +0000 Original-Received: (at 6610) by debbugs.gnu.org; 11 Jul 2010 18:33:43 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OY1LS-0005vo-Ms for submit@debbugs.gnu.org; Sun, 11 Jul 2010 14:33:42 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OY1LQ-0005vg-Kh for 6610@debbugs.gnu.org; Sun, 11 Jul 2010 14:33:41 -0400 Original-Received: (qmail 61139 invoked by uid 3782); 11 Jul 2010 18:33:40 -0000 Original-Received: from acm.muc.de (pD9E5395F.dip.t-dialin.net [217.229.57.95]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 11 Jul 2010 20:33:37 +0200 Original-Received: (qmail 10249 invoked by uid 1000); 11 Jul 2010 18:44:26 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 11 Jul 2010 14:34:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38412 Archived-At: Hi, Aeron, On Sat, Jul 10, 2010 at 11:34:44PM -0400, Aeron.E. Wang wrote: > Hi, > When scrolling with mouse or C-v or M-v, the cursor is moving. This destroys > the long highlights and selections etc. and it's confusing users. Most > editors keep the cursor position fixed even when it's invisible. The region is bounded by point and mark. You can remember the current position of the region with C- before you start scrolling. A subsequent C-u C- will restore that region. I don't actually use highlighting or selections myself, so this might not be what you want. > I searched the web for a solution but there is none. Looked the code of > emacs, looks vertical-motion also will move cursor when scrolling (not sure > how about vmotion). I believe the next release of emacs should fix this. If > there is any work-arounds please kindly let me know. It's not broken, there's nothing to fix. Think about it - usually, when people scroll a buffer, they'll be wanting to insert/delete text where they end up. If point (Emacs jargon for the cursor) is left behind, they won't be able to edit at the new position. How on earth are they going to indicate to Emacs where point should go. Yes I know how you'll counter this. You'll say that you can click the mouse. However, not all systems have mice, and many hackers dislike using them. Emacs was designed to be used without mouse ambages. You say it's confusing when the point moves with the scrolling. I say this is nothing compared to the aggravation I used to suffer with lesser editors when, after scrolling, an accidental keypress would warp back to the random position where the cursor was. This destroyed my chain of thought with 100% reliability. > Please also let me know how to track the followup(s) of this "bug?" if > any... I hope so! You should get cc's of all the followup mail. > Thanks, > Aeron -- Alan Mackenzie (Nuremberg, Germany).