emacs-devel
[Top][All Lists]
Advanced

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

Re: scroll-lock-mode and goal-column


From: Stefan Monnier
Subject: Re: scroll-lock-mode and goal-column
Date: Thu, 03 Jul 2008 18:10:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>> And if I open the raw dir file the behavior is even worse, meaning
>>> point will not jump back into the previous column at all once it got
>>> stuck to column 0.
>> 
>> I actually much prefer this behavior because it's consistent with the
>> simple `last-command' problem, so it should be easy to fix.

> I'm not sure what to let-bind `last-command' to, but setting

Any of `scroll-up' or `scroll-down'.

> `this-command' seems to work.  (See attached patch.  No ChangeLog entry,

Yes, it should work as well.

> The only problem now is that once the `forward-line' movement kicks in
> at the start or end of a buffer, point will be moved to column 0 again.

Oh, indeed.  That needs more work.

> However, I'd prefer the column to be preserved.  Since this behavior of
> `forward-line' is by design, I'm not sure if we can get rid of the
> manual preservation of the goal column.

How 'bout using next-line?


        Stefan




reply via email to

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