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#10076: 24.0.91; Automatic horizontal scrolling Date: Sat, 19 Nov 2011 21:54:26 +0200 Message-ID: <83d3cnc2h9.fsf@gnu.org> References: <83ehx3c49b.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1321732626 25509 80.91.229.12 (19 Nov 2011 19:57:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2011 19:57:06 +0000 (UTC) Cc: 10076@debbugs.gnu.org To: dmoncayo@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 20:57:02 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RRr26-0006v6-Ce for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 20:57:02 +0100 Original-Received: from localhost ([::1]:59771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRr26-0002Sn-2G for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 14:57:02 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRr23-0002Sh-CD for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 14:57:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRr22-0006yg-CR for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 14:56:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRr22-0006yc-B1 for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 14:56:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RRr33-0000Qw-LE for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 14:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2011 19:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10076 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10076-submit@debbugs.gnu.org id=B10076.13217326441616 (code B ref 10076); Sat, 19 Nov 2011 19:58:01 +0000 Original-Received: (at 10076) by debbugs.gnu.org; 19 Nov 2011 19:57:24 +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 1RRr2S-0000Q1-0h for submit@debbugs.gnu.org; Sat, 19 Nov 2011 14:57:24 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRr2P-0000Ps-5S for 10076@debbugs.gnu.org; Sat, 19 Nov 2011 14:57:22 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LUX00E00B8Q8Q00@a-mtaout21.012.net.il> for 10076@debbugs.gnu.org; Sat, 19 Nov 2011 21:56:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.237.133]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LUX00EJYBDQ2N60@a-mtaout21.012.net.il>; Sat, 19 Nov 2011 21:56:15 +0200 (IST) In-reply-to: <83ehx3c49b.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 19 Nov 2011 14:58:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54064 Archived-At: > Date: Sat, 19 Nov 2011 21:16:00 +0200 > From: Eli Zaretskii > Cc: 10076@debbugs.gnu.org > > > Date: Sat, 19 Nov 2011 19:24:54 +0100 > > From: Dani Moncayo > > > > Recipe from "emacs -Q": > > > > 1. Type "C-p". > > --> Without this, the bug does not show up. > > > > 2. Type "C-u 2 C-x < SPC". > > --> This scrolls the buffer two position to the left (ok). > > > > 3. Type "C-p C-p". > > --> The buffer automatically scrolls back to its original position, > > which is wrong (see [a]). > > This happens in Emacs 23.3 as well, so this isn't a regression. > > I will try to take a look at it when I have time and see if it's > something simple to fix. I found an easy band-aid, and fixed this in revision 106431 on the trunk. (The fundamental problem here is that posn-at-point can return nil, if point is invisible in the window, and line-move-visual doesn't handle this situation. Can point be invisible in some case that doesn't involve hscroll?)