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: (save-excursion (other-window 1)) leaves me in the other window Date: Fri, 05 Mar 2010 12:33:03 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272989523 2322 80.91.229.12 (4 May 2010 16:12:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 16:12:03 +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:12:02 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 1O9Kj4-0008Fq-33 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:12:02 +0200 Original-Received: from localhost ([127.0.0.1]:37900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Kj3-0003VW-9z for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 12:12:01 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.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: Fri, 05 Mar 2010 14:35:37 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:j3LWHLncaZpakKb84oAUYZjH7Es= Original-Lines: 10 Original-X-Trace: sv3-jqj0yqg6rfZfGRwBb/Aay4eyysei8MpTth6Y9lA3Ha9Fq9la6B5a9IxZwKhUKy+mlFqai6eVGHR7Ked!WE2Q861Wl3DjIEUzewWwPFCab2E7OQHiMWoIUAhg55bdHynBUxbtndRMlINLOWRhm1Y= 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:177372 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:72915 Archived-At: 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?