unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: dmoncayo@gmail.com
Cc: 10076@debbugs.gnu.org
Subject: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 21:54:26 +0200	[thread overview]
Message-ID: <83d3cnc2h9.fsf@gnu.org> (raw)
In-Reply-To: <83ehx3c49b.fsf@gnu.org>

> Date: Sat, 19 Nov 2011 21:16:00 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 10076@debbugs.gnu.org
> 
> > Date: Sat, 19 Nov 2011 19:24:54 +0100
> > From: Dani Moncayo <dmoncayo@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	other threads:[~2011-11-19 19:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-19 18:24 bug#10076: 24.0.91; Automatic horizontal scrolling Dani Moncayo
2011-11-19 19:16 ` Eli Zaretskii
2011-11-19 19:54   ` Eli Zaretskii [this message]
2011-11-19 20:01     ` Eli Zaretskii
2011-11-19 20:35     ` Johan Bockgård
2011-11-19 21:13       ` Eli Zaretskii
2011-11-19 21:19     ` Dani Moncayo
2011-11-20 18:27       ` bug#7526: " Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83d3cnc2h9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=10076@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).