From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: scroll-conservatively overflow Date: 30 Apr 2004 18:38:10 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040416114146.38AB.JMBARRANQUERO@wke.es> <87vfk0auk0.fsf@orebokech.com> <87d65p1yxk.fsf@orebokech.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083347258 15887 80.91.224.253 (30 Apr 2004 17:47:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Apr 2004 17:47:38 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 30 19:47:29 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJc6j-0007XM-00 for ; Fri, 30 Apr 2004 19:47:29 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJc6i-0000d1-00 for ; Fri, 30 Apr 2004 19:47:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJc1u-0006WH-AK for emacs-devel@quimby.gnus.org; Fri, 30 Apr 2004 13:42:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BJbyX-0005MC-Hp for emacs-devel@gnu.org; Fri, 30 Apr 2004 13:39:01 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BJZUp-0007oh-CD for emacs-devel@gnu.org; Fri, 30 Apr 2004 11:00:42 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.30) id 1BJZ9p-0003D5-Ka for emacs-devel@gnu.org; Fri, 30 Apr 2004 10:38:29 -0400 Original-Received: (qmail 96554 invoked from network); 30 Apr 2004 14:38:28 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 30 Apr 2004 14:38:28 -0000 Original-To: emacs-devel@gnu.org In-Reply-To: <87d65p1yxk.fsf@orebokech.com> Original-Lines: 75 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22454 Romain Francoise writes: > Romain Francoise writes: > > > About scrolling: I've been bitten by a bug for some weeks now, I > > originally thought it was specific to the multi-tty code but I > > discovered this morning that it's not. (A fresh checkout from CVS HEAD > > this morning exhibited the same issues.) > > I have finally found enough time to track it down. The change > responsible for all my scrolling problems is Richard's change to > indent.c on March 2nd: > > 2004-03-02 Richard M. Stallman > > * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc. > > Reverting this change (see attached patch) solves all issues in Dired, > Gnus, etc. > > I have tried to come up with a fix but failed. I don't really > understand why this change was necessary, it adds complexity and does > not fix anything as far as I can see. If it was just a code cleanup, > maybe the best would be to revert it for the time being. The change was made in response to the following bug report: The fix was obviously not correct. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Place the following in a file named `/tmp/x' ======cut here===== Barf Whee! Yadda ======cut here===== (the above contains three lines, no tabs, and no trailing spaces, for a total of 27 characters) Now do the following: * start `emacs -q --no-site-file' * find the file: C-x C-f /tmp/x RET * turn on selective-display: C-u C-x $ * attempt to move point forward: C-n C-n Note that the cursor did not appear to move after the second C-n. That's the bug; it should have appeared on the third visible line (right before the `Y'). * sanity check: C-x = You should see point 6 of 27. * again attempt to move point forward: C-n * again sanity check: C-x = It's still at 6 of 27. If it matters, you can "un-stick" point by typing C-f, *then* typing C-n; in that case, point indeed winds up on the third visible line, where I'd expect it to. -- Kim F. Storm http://www.cua.dk