unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: emacs-devel@gnu.org
Subject: Re: set-window-start moves point without scrolling
Date: Tue, 19 Mar 2013 05:42:27 +0200	[thread overview]
Message-ID: <83k3p412e4.fsf@gnu.org> (raw)
In-Reply-To: <87zjy05nwu.fsf@web.de>

> From: Michael Heerdegen <michael_heerdegen@web.de>
> 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	other threads:[~2013-03-19  3:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-18 22:44 set-window-start moves point without scrolling Michael Heerdegen
2013-03-19  3:42 ` Eli Zaretskii [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83k3p412e4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).