GNU bug report logs - #10076
24.0.91; Automatic horizontal scrolling

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Sat, 19 Nov 2011 18:27:01 UTC

Severity: normal

Found in version 24.0.91

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10076 in the body.
You can then email your comments to 10076 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10076; Package emacs. (Sat, 19 Nov 2011 18:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dani Moncayo <dmoncayo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 19 Nov 2011 18:27:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 19:24:54 +0100
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]).


---- Footnotes ----

[a] Last paragraph of (info "(emacs)Horizontal Scrolling"):
    If you use those commands to scroll a window horizontally, that sets
 a lower bound for automatic horizontal scrolling.  Automatic scrolling
 will continue to scroll the window, but never farther to the right than
 the amount you previously set by `scroll-left'.


In GNU Emacs 24.0.91.1 (i386-mingw-nt6.1.7601)
 of 2011-11-17 on DANI-PC
Windowing system distributor `Microsoft Corp.', version 6.1.7601
configured using `configure --with-gcc (4.5)'

-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10076; Package emacs. (Sat, 19 Nov 2011 19:20:02 GMT) Full text and rfc822 format available.

Message #8 received at 10076 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 10076 <at> debbugs.gnu.org
Subject: Re: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 21:16:00 +0200
> Date: Sat, 19 Nov 2011 19:24:54 +0100
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> 
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10076; Package emacs. (Sat, 19 Nov 2011 19:58:01 GMT) Full text and rfc822 format available.

Message #11 received at 10076 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: dmoncayo <at> gmail.com
Cc: 10076 <at> debbugs.gnu.org
Subject: Re: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 21:54:26 +0200
> Date: Sat, 19 Nov 2011 21:16:00 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 10076 <at> debbugs.gnu.org
> 
> > Date: Sat, 19 Nov 2011 19:24:54 +0100
> > From: Dani Moncayo <dmoncayo <at> gmail.com>
> > 
> > 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?)




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 19 Nov 2011 20:05:01 GMT) Full text and rfc822 format available.

Notification sent to Dani Moncayo <dmoncayo <at> gmail.com>:
bug acknowledged by developer. (Sat, 19 Nov 2011 20:05:02 GMT) Full text and rfc822 format available.

Message #16 received at 10076-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 10076-done <at> debbugs.gnu.org
Subject: Re: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 22:01:23 +0200
> Date: Sat, 19 Nov 2011 21:54:26 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 10076 <at> debbugs.gnu.org
> 
> I found an easy band-aid, and fixed this in revision 106431 on the
> trunk.

Closing.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10076; Package emacs. (Sat, 19 Nov 2011 20:37:01 GMT) Full text and rfc822 format available.

Message #19 received at 10076 <at> debbugs.gnu.org (full text, mbox):

From: Johan Bockgård <bojohan <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 10076 <at> debbugs.gnu.org
Subject: Re: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 21:35:00 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> (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?)

It also happens during ordinary scrolling

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7046#23




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10076; Package emacs. (Sat, 19 Nov 2011 21:17:01 GMT) Full text and rfc822 format available.

Message #22 received at 10076 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Johan Bockgård <bojohan <at> gnu.org>
Cc: 10076 <at> debbugs.gnu.org
Subject: Re: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 23:13:13 +0200
> From: Johan Bockgård <bojohan <at> gnu.org>
> Cc: 10076 <at> debbugs.gnu.org
> Date: Sat, 19 Nov 2011 21:35:00 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > (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?)
> 
> It also happens during ordinary scrolling
> 
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7046#23

The problem with posn-at-point returning nil is that you have no way
of knowing the horizontal position of point.

Does it help to call line-move-1 in line-move instead of
line-move-visual, when posn-at-point returns nil?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10076; Package emacs. (Sat, 19 Nov 2011 21:21:01 GMT) Full text and rfc822 format available.

Message #25 received at 10076 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 10076 <at> debbugs.gnu.org
Subject: Re: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 22:19:24 +0100
> I found an easy band-aid, and fixed this in revision 106431 on the
> trunk.

Thanks Eli.  Your patch also seem to fix bug #7526, which could be closed too.

-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10076; Package emacs. (Sun, 20 Nov 2011 18:31:02 GMT) Full text and rfc822 format available.

Message #28 received at 10076 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 7526-done <at> debbugs.gnu.org, 10076 <at> debbugs.gnu.org
Subject: Re: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sun, 20 Nov 2011 20:27:35 +0200
> Date: Sat, 19 Nov 2011 22:19:24 +0100
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: 10076 <at> debbugs.gnu.org
> 
> > I found an easy band-aid, and fixed this in revision 106431 on the
> > trunk.
> 
> Thanks Eli.  Your patch also seem to fix bug #7526, which could be closed too.

Done, thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 19 Dec 2011 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.