help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How start shell in a new *window*? No shell-other-window exists!?!?


From: address@hidden
Subject: Re: How start shell in a new *window*? No shell-other-window exists!?!?!
Date: Tue, 9 Dec 2008 10:20:10 -0800 (PST)
User-agent: G2/1.0

On Dec 9, 4:45 am, Rupert Swarbrick <rswarbr...@gmail.com> wrote:
> > There doesn't seem to be a shell-other-window to start shell in a new
> > *window* like dired-other-window.
>
> > The following function I wrote shows a shell in TWO windows so it
> > doesn't do the trick.
>
> > (lambda () (interactive)
> >         (switch-to-buffer-other-window (shell)))
>
> Try this
>
> (lambda () (interactive)
>    (switch-to-buffer-other-window nil)
>    (shell))
>
> The point is that in your code, (shell) is evaluated (making a new
> buffer, which gets displayed in the current window) and then
> switch-to-buffer-other-window says to display that buffer in a different
> window too.

Thanks a lot.  That did it!

cs


reply via email to

[Prev in Thread] Current Thread [Next in Thread]