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: Rupert Swarbrick
Subject: Re: How start shell in a new *window*? No shell-other-window exists!?!?!
Date: Tue, 09 Dec 2008 12:45:32 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

"seberino@spawar.navy.mil" <seberino@spawar.navy.mil> writes:

> 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.

Rupert

Attachment: pgpGyqPFaUPJV.pgp
Description: PGP signature


reply via email to

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