emacs-devel
[Top][All Lists]
Advanced

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

Re: scroll-restore.el


From: David De La Harpe Golden
Subject: Re: scroll-restore.el
Date: Fri, 22 Feb 2008 16:11:51 +0000

On 21/02/2008, Richard Stallman <address@hidden> wrote:
> I think this is trying to implement too many different features, and
>  we don't want them all.  I would rather implement just the feature of
>  restoring point after you scroll back to the previous screen, in a
>  simple way.
>

Well, that is perhaps useful on its own.  But just to note, some of
the additional features are probably needed to address the
transient-mark-mode region selection concern in the context where
Martin introduced scroll-restore - e.g. handle-region and jump-back.
(handle region just gives the appearance that an active region can go
offscreen, jump back is apparently then needed so that the region is
really reset to the pre-scrolled region just before the kill,
otherwise the real region at scrolled time is killed).

>   We can add a new
>  specific hook, and run it from commands and features that scroll.
>

I think that may wind up being necessary anyway - e.g. As pointed out
in the source comments, the code can't handle e.g. vertical scroll bar
or mouse drag scrolling sometimes because they don't cause a
post-command-hook?

(And if you are then concerned with the behaviour of the active region
under scrolling (though of course you mightn't be),  that can then
cause  serious flickering at best, "wrong" region at worst (e.g. if
you segue directly into a vertical scroll bar scroll from a mouse drag
mark region)).




reply via email to

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