help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: improper behavior of (scroll-down 0)


From: Shiyao Ma
Subject: Re: improper behavior of (scroll-down 0)
Date: Fri, 12 Feb 2016 17:41:11 +0800

Hi, Eli

On 12 February 2016 at 14:59, Eli Zaretskii <eliz@gnu.org> wrote:

> Sorry, I should have been more clear.  The question I wanted to ask
> is: if you don't want the window to scroll, why do you invoke
> scroll-down at all?  I assumed you did that because you wanted some
> effect other than scrolling, so I asked what was that effect.
>
> yup, I'd admit the plain (scroll-down 0) is meaningless.

Actually the scrolling down part is of the form (scroll-down scrollable),
the origin is here:
https://github.com/emacsmirror/evil/blob/master/evil-commands.el#L870

When `scrollable' becomes 0, the undesired behavior happens.

Another observation is, the undesired behavior doesn't happen under
*scratch* buffer or others alike.

The info mode has sort of a navigation bar, "(elisp)Top > Positions >
Excursions",  maybe (scroll-down) doesn't handle that well.



Regards.

-- 

吾輩は猫である。ホームーページはhttps://introo.me <http://introo.me>。


reply via email to

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