[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How force command's output to appear in *current* window?
From: |
Barry Margolin |
Subject: |
Re: How force command's output to appear in *current* window? |
Date: |
Sun, 14 Dec 2008 21:44:08 -0500 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article
<fe2cd046-812c-42ed-ad29-4d5b974c45e7@b41g2000pra.googlegroups.com>,
"seberino@spawar.navy.mil" <seberino@spawar.navy.mil> wrote:
> On Dec 13, 10:35 pm, Barry Margolin <bar...@alum.mit.edu> 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 ***