From: Sean McAfee <eefacm@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: (save-excursion (other-window 1)) leaves me in the other window
Date: Mon, 08 Mar 2010 08:55:09 -0800 [thread overview]
Message-ID: <m3mxyivjma.fsf@palantirtech.com> (raw)
In-Reply-To: 87mxyjs28x.fsf@rapttech.com.au
Tim X <timx@nospam.dev.null> writes:
> Sean McAfee <eefacm@gmail.com> writes:
>> Although the documentation for save-excursion says that it saves and
>> restores the current buffer, it doesn't in this case.
> Note that the docs as you noted say that they restore the buffer, not
> the window. This was part of the point I was tyring to make. Buffers and
> windows are not the same thing.
If the current buffer is restored, then I would expect this expression:
(eq (current-buffer) (save-excursion arbitrary-forms (current-buffer)))
...to always evaluate to t regardless of what arbitrary-forms is, but it
returns nil if I replace arbitrary-forms with (other-window 1).
next prev parent reply other threads:[~2010-03-08 16:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2010-03-08 17:02 ` Sean McAfee
2010-03-08 17:24 ` David Kastrup
2010-03-09 6:45 ` Tim X
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=m3mxyivjma.fsf@palantirtech.com \
--to=eefacm@gmail.com \
--cc=help-gnu-emacs@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.
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).