[Top][All Lists]

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

Re: set-window-start moves point without scrolling

From: Eli Zaretskii
Subject: Re: set-window-start moves point without scrolling
Date: Tue, 19 Mar 2013 05:42:27 +0200

> From: Michael Heerdegen <address@hidden>
> Date: Mon, 18 Mar 2013 23:44:01 +0100
> (progn
>   (setq-default scroll-margin 2)
>   (pop-to-buffer (get-buffer-create "test"))
>   (insert "1\n2\n3")
>   (goto-char 1)
>   (set-window-start nil (window-start)))
> Then, point in buffer "test" is at the beginning of line 3.  This
> doesn't happen in Emacs 23, only in 24.  And it doesn't seem right - the
> doc of `set-window-start' tells that point is only changed if would be
> out of sight otherwise.  Is this a bug or a feature?

Feature.  You set the scroll-margin to 2, so Emacs avoids putting
point inside the margin.

Does this give you trouble in any real-life situation?

reply via email to

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