From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "seberino@spawar.navy.mil" Newsgroups: gmane.emacs.help Subject: Re: How force command's output to appear in *current* window? Date: Sun, 14 Dec 2008 22:34:37 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1229323282 19898 80.91.229.12 (15 Dec 2008 06:41:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 06:41:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 15 07:42:29 2008 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.50) id 1LC79w-0000Zm-O5 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Dec 2008 07:42:28 +0100 Original-Received: from localhost ([127.0.0.1]:57346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC78k-0003qI-LT for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Dec 2008 01:41:14 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p2g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 99.204.123.29 Original-X-Trace: posting.google.com 1229322877 32416 127.0.0.1 (15 Dec 2008 06:34:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 15 Dec 2008 06:34:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000prf.googlegroups.com; posting-host=99.204.123.29; posting-account=VkuUtQkAAADKqMjRUmZTNs7a8uCSNNy2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165291 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:60618 Archived-At: On Dec 14, 6:44=A0pm, Barry Margolin wrote: > In article > , > > > > =A0"seber...@spawar.navy.mil" wrote: > > On Dec 13, 10:35=A0pm, Barry Margolin wrote: > > > Call it within save-window-excursion. > > > Thanks! Does this work for all commands? =A0I couldn't get it to work > > for compile. > > > I tried > > > (save-window-excursion 'compile) > > (save-window-excursion compile) > > (save-window-excursion (compile)) > > > They all either gave an error or nothing happened. > > > cs > > You left out the argument to compile. > > (save-window-excursion > =A0 (compile compile-command)) > > will compile with the default compilation command. Thanks. That worked. cs