From: martin rudalics <rudalics@gmx.at>
To: "Johan Bockgård" <bojohan@gnu.org>
Cc: 10024@debbugs.gnu.org, Uday S Reddy <u.s.reddy@cs.bham.ac.uk>
Subject: bug#10024: 24.0.91; save-restriction fails to restore the screen
Date: Sun, 13 Nov 2011 15:09:52 +0100 [thread overview]
Message-ID: <4EBFCFB0.6020707@gmx.at> (raw)
In-Reply-To: <877h34dxx0.fsf@gnu.org>
> But save-excursion also does not restore the window. It restores point
> (etc.). If a redisplay happens inside save-excursion, the window can
> scroll.
It _could_ scroll back to the initial position when, returning from the
excursion, point is off-screen. Chances are that even the window-start
position after that is the same as before the excursion. But there's
_no_ guarantee. So you should restore the old position using something
like either `recenter' or `set-window-start'.
martin
next prev parent reply other threads:[~2011-11-13 14:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-12 11:59 bug#10024: 24.0.91; save-restriction fails to restore the screen Uday S Reddy
2011-11-13 1:55 ` Johan Bockgård
2011-11-13 11:01 ` martin rudalics
2011-11-13 11:29 ` Uday S Reddy
2011-11-13 12:11 ` Johan Bockgård
2011-11-13 14:09 ` martin rudalics [this message]
2011-11-13 15:06 ` Uday S Reddy
2014-02-04 0:32 ` Lars Ingebrigtsen
2015-12-25 23:10 ` Lars Ingebrigtsen
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=4EBFCFB0.6020707@gmx.at \
--to=rudalics@gmx.at \
--cc=10024@debbugs.gnu.org \
--cc=bojohan@gnu.org \
--cc=u.s.reddy@cs.bham.ac.uk \
/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.