unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* (save-excursion (other-window 1)) leaves me in the other window
@ 2010-03-05 20:33 Sean McAfee
  2010-03-05 22:21 ` Joe Fineman
  2010-03-07  6:55 ` Tim X
  0 siblings, 2 replies; 9+ messages in thread
From: Sean McAfee @ 2010-03-05 20:33 UTC (permalink / raw)
  To: help-gnu-emacs

A native reimplementation of scroll-other-window doesn't work as I'd
expect:

  (save-excursion
    (other-window 1)
    (scroll-up))

The problem is that the current window isn't restored, which surprised
me considerably.  Why doesn't this work, and how would I write a
function to go do some stuff in the other window and then come back?


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-03-09  6:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-05 20:33 (save-excursion (other-window 1)) leaves me in the other window Sean McAfee
2010-03-05 22:21 ` Joe Fineman
2010-03-07  6:55 ` Tim X
2010-03-08  3:09   ` Sean McAfee
2010-03-08  7:26     ` Tim X
2010-03-08 16:55       ` Sean McAfee
2010-03-08 17:02         ` Sean McAfee
2010-03-08 17:24           ` David Kastrup
2010-03-09  6:45         ` Tim X

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).