all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rupert Swarbrick <rswarbrick@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How start shell in a new *window*? No shell-other-window exists!?!?!
Date: Tue, 09 Dec 2008 12:45:32 +0000	[thread overview]
Message-ID: <ghlpar$73e$1@news.albasani.net> (raw)
In-Reply-To: 30a97e56-6503-4362-93ec-93526b3d0c2c@z6g2000pre.googlegroups.com

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

"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 #2: Type: application/pgp-signature, Size: 314 bytes --]

  reply	other threads:[~2008-12-09 12:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 19:00 How start shell in a new *window*? No shell-other-window exists!?!?! seberino
2008-12-09 12:45 ` Rupert Swarbrick [this message]
2008-12-09 18:20   ` seberino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ghlpar$73e$1@news.albasani.net' \
    --to=rswarbrick@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.