all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: set-window-start moves point without scrolling
Date: Mon, 18 Mar 2013 23:44:01 +0100	[thread overview]
Message-ID: <87zjy05nwu.fsf@web.de> (raw)

Hello,

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

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


Regards,

Michael.



             reply	other threads:[~2013-03-18 22:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-18 22:44 Michael Heerdegen [this message]
2013-03-19  3:42 ` set-window-start moves point without scrolling Eli Zaretskii
2013-03-19 16:26   ` Michael Heerdegen
2013-03-19 17:40     ` Eli Zaretskii
2013-03-19 18:38       ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjy05nwu.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.