From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "seberino@spawar.navy.mil" Newsgroups: gmane.emacs.help Subject: Re: How start shell in a new *window*? No shell-other-window exists!?!?! Date: Tue, 9 Dec 2008 10:20:10 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <30a97e56-6503-4362-93ec-93526b3d0c2c@z6g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1228848160 1974 80.91.229.12 (9 Dec 2008 18:42:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 18:42:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 09 19:43:46 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 1LA7YT-0006ll-HL for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Dec 2008 19:43:33 +0100 Original-Received: from localhost ([127.0.0.1]:38600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA7XI-0005R6-Gl for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Dec 2008 13:42:20 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a29g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 70.6.223.10 Original-X-Trace: posting.google.com 1228846810 11140 127.0.0.1 (9 Dec 2008 18:20:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 9 Dec 2008 18:20:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a29g2000pra.googlegroups.com; posting-host=70.6.223.10; posting-account=VkuUtQkAAADKqMjRUmZTNs7a8uCSNNy2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165184 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:60513 Archived-At: On Dec 9, 4:45=A0am, Rupert Swarbrick 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) > > =A0 =A0 =A0 =A0 (switch-to-buffer-other-window (shell))) > > Try this > > (lambda () (interactive) > =A0 =A0(switch-to-buffer-other-window nil) > =A0 =A0(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