[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: next-line + recenter (- redraw frame)?
From: |
Ralf Angeli |
Subject: |
Re: next-line + recenter (- redraw frame)? |
Date: |
Mon, 06 Mar 2006 09:43:32 +0100 |
* Peter Tury (2006-03-06) writes:
> On Fri, 03 Mar 2006 18:36:30 +0100, Ralf Angeli wrote:
>
>> You can get a similar functionality with `C-l' followed by `M-x
>> scroll-lock-mode RET' and using `C-p' and `C-n' for moving around.
>
> thanks for the info! I checked this mode now and learned from it. But I
> don't plan to use it instead of my code, because you reimplemented some
> functionality and thus (e.g.) <down> doesn't work exactly as normally. I
> mean e.g. if I go to end of line and then down, then the column is keeped
> instead of the end of line (as normally).
I don't understand what you mean.
If there are the lines
1: a
2: ab
in a buffer and point is at the end of the first line, calling either
`next-line' without Scroll Lock mode or `scroll-lock-next-line' will
have the same result, namely that point will be between "a" and "b" in
the second line. `next-line' does not move point to the end of the
second line as you seem to describe. But maybe I misunderstood that.
> This solution is equivalently
> good also for me but I would like to have only one method... (Moreover:
> your minor mode sometimes skips two lines, I don't know why.)
If you send a bug report with a minimal example by means of `M-x
emacs-report-bug RET' people would have a chance to debug the problem
and eventually fix it.
--
Ralf