From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sean McAfee Newsgroups: gmane.emacs.help Subject: Re: (save-excursion (other-window 1)) leaves me in the other window Date: Mon, 08 Mar 2010 08:55:09 -0800 Message-ID: References: <87y6i4sjsn.fsf@rapttech.com.au> <87mxyjs28x.fsf@rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272990924 8313 80.91.229.12 (4 May 2010 16:35:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 16:35:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 18:35:23 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9L5c-0003lV-Ku for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:35:20 +0200 Original-Received: from localhost ([127.0.0.1]:43562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9L5c-0007C0-1N for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 12:35:20 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 08 Mar 2010 10:57:48 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:QJgXLSHV9gHU75Rm7hSGNSjFz1A= Original-Lines: 15 Original-X-Trace: sv3-FcpRD3y5FdRKgHi2DA+JFIo76QU+kuUOt1ndyhsHW3BbXuOhcgRj4xsll83Tewdhhwrb/8UwuVbgyzP!59ybOTIFMKjwNxEb8HosipE2ftwY7Y79yQbrDDnUa2iSghOTNu7GFlfb/tmLgcp9HoE= Original-X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:177406 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72935 Archived-At: Tim X writes: > Sean McAfee 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).