From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How force command's output to appear in *current* window? Date: Sun, 14 Dec 2008 21:44:08 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1229312982 949 80.91.229.12 (15 Dec 2008 03:49:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 03:49:42 +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 04:50:47 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 1LC4Tm-0004IN-Vt for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Dec 2008 04:50:47 +0100 Original-Received: from localhost ([127.0.0.1]:52932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC4Sa-0008F5-WF for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Dec 2008 22:49:33 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!news.motzarella.org!motzarella.org!news.motzarella.org!barmar Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: news.eternal-september.org U2FsdGVkX1832+RZ3QpClzkrAnKXlPhVVo/ri1kwAJlz8vbyFDiDlk+UJVUbCbM3bZI28pjkeQWog7NvSXG4L48vimO9H816LpYe8B8SKi6G4zOwkIEjkBuNzaiv680elzKzXvYgp90= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Mon, 15 Dec 2008 02:44:08 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/yg39J6y6xRMZPs9umqQCEjLJgsstpWqs= Cancel-Lock: sha1:fATI1x/EMRlEwpeZhzyMVaw9SeI= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:165290 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:60617 Archived-At: In article , "seberino@spawar.navy.mil" wrote: > On Dec 13, 10:35 pm, Barry Margolin wrote: > > Call it within save-window-excursion. > > Thanks! Does this work for all commands? I 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 (compile compile-command)) will compile with the default compilation command. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***