[Top][All Lists]

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

Re: scroll-preserve-screen-position not working

From: martin rudalics
Subject: Re: scroll-preserve-screen-position not working
Date: Wed, 11 Apr 2007 23:24:19 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> I replaced in cus-start.el the line:
>        (scroll-preserve-screen-position windows boolean)
> with:
>             (scroll-preserve-screen-position
>              windows (choice
>                       (const :tag "Off (nil)" :value nil)
>                       (const :tag "Full screen (t)" :value t)
>                       (other :tag "Always")))
> (As a matter of fact, I commented out the original line by
> putting ;; in front of it).
> However, this does not fix the problem. When I scroll, the
> cursor changes position in the text.

But did you customize `scroll-preserve-screen-position' to `Always'?

The choices now should be:

Off (nil) ......... don't preserve the screen position (default)
Full screen (t) ... preserve screen position for full screen scroll
                    commands only
Always (1) ........ preserve screen position for any scroll command
                    (that's what you want AFAICT).

In any case

(setq scroll-preserve-screen-position 'foo)

in your .emacs shoud get you the desired behavior even without this
change.  If it doesn't please tell me.  If customizing doesn't work tell
me as well.

reply via email to

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