[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scroll-lock-mode and goal-column

From: Ralf Angeli
Subject: Re: scroll-lock-mode and goal-column
Date: Sun, 29 Jun 2008 16:33:51 +0200

* Stefan Monnier (2008-06-13) writes:

> Now that scroll-preserve-screen-position preserves the column position,
> I think that scroll-lock-mode can be simplified to not mess with the
> goal-column any more.  Could someone look into this?

After removing all calls to `scroll-lock-update-goal-column' and
`scroll-lock-move-to-column' the behavior is not the same as before.

For example if you open the info dir with `C-h i d', activate Scroll
Lock mode, move point down a bit into the introductory blurb, then move
it to column 30 and scroll down line by line with `C-n', point will
sometimes stick to column 0 even though there is text to the right where
it can be moved to.  Also, it will not jump back to column 30, once it
does, but to column 26.

With the manual column adjustment in scroll-lock.el, point will be
positioned correctly at column 30 again, when it is possible.

I'm not sure if the behavior exhibited with using only
`scroll-preserve-screen-position' is intentional, but it looks like a
bug.  The build I checked this with is about a week old.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]