[Top][All Lists]

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

set-window-start moves point without scrolling

From: Michael Heerdegen
Subject: set-window-start moves point without scrolling
Date: Mon, 18 Mar 2013 23:44:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)


this seems strange to me: in emacs -Q, eval this:

  (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?



reply via email to

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