From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Fineman Newsgroups: gmane.emacs.help Subject: Re: (save-excursion (other-window 1)) leaves me in the other window Date: Fri, 05 Mar 2010 17:21:47 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272989587 2644 80.91.229.12 (4 May 2010 16:13:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 16:13:07 +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:13:06 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 1O9Kk1-0000RZ-EN for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:13:01 +0200 Original-Received: from localhost ([127.0.0.1]:57886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Kk0-0003rY-Of for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 12:13:00 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Injection-Date: Fri, 5 Mar 2010 22:22:35 +0000 (UTC) Injection-Info: news.motzarella.org; posting-host="AOLrlnal4zxRJUqQMnuT5w"; logging-data="24740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9fjsSQjVaN0hjU+dezkG2" User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:hOXHTEJVcGjsM+Us3ovt7Tv1xwo= sha1:aPgkjv6KK0WnAV0B0RuiG1z1oeQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:177374 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:72916 Archived-At: Sean McAfee writes: > 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? I believe save-excursion should be save-window-excursion. -- --- Joe Fineman joe_f@verizon.net ||: Everything you do costs money, dissipates heat, and makes :|| ||: crumbs. :||