[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hscroll-step doc bug; cannot turn off hscroll by binding
From: |
Kim F. Storm |
Subject: |
Re: hscroll-step doc bug; cannot turn off hscroll by binding |
Date: |
Tue, 30 May 2006 10:25:03 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Drew Adams" <address@hidden> writes:
> 1. The doc string of `hscroll-step' refers to variable
> `automatic-hscroll-margin'. I believe this should be `hscroll-margin'
> (the former apparently does not exist).
I don't see this ... is your emacs up-to-date?
>
> 2. I tried to bind `auto-hscroll-mode' to nil in a particular context,
> to prevent automatic scrolling (without changing the user's value of
> the option). It does not seem to work - scrolling occurs
> anyway. Likewise, binding `hscroll-margin' to 0 had no effect (didn't
> prevent auto scrolling). I used a let binding in a mouse command, but
> as soon as the command exited the window was scrolled anyway (after
> clicking near a window edge). I ended up setting `auto-hscroll-mode'
> as a buffer-local variable, which is OK, but I think binding it should
> also work.
>
Hscrolling is done by the redisplay engine _after_ the command has
completed, so any temporary change to hscroll related variables will
have no effect on how things are displayed.
--
Kim F. Storm <address@hidden> http://www.cua.dk