From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Why can only view at most TWO windows? Date: Tue, 09 Dec 2008 23:58:58 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1228887677 13876 80.91.229.12 (10 Dec 2008 05:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2008 05:41:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 10 06:42:22 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 1LAHq1-0004a7-GC for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Dec 2008 06:42:22 +0100 Original-Received: from localhost ([127.0.0.1]:54682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAHoq-0005qA-2C for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Dec 2008 00:41:08 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!news.motzarella.org!motzarella.org!news.motzarella.org!barmar Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-X-Trace: news.motzarella.org U2FsdGVkX1+0+lxaqYU/OlaTob8AnEGxnw1P6L27aElBE52NKVW7XKuAHjcvR9ddWMF/oNeTZVCa9M1zfWe7V3gpopgX6D85HH5LdgHL+wi5MjiQalXp+lerRoJJIbKcLjxHcqB1bB4= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Wed, 10 Dec 2008 04:58:58 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/sH0XhP1WfP2dCbXPMDNWFe06jUFLf0gU= Cancel-Lock: sha1:YG61X7U7MdEy+C+gmg5ZEp2D5RA= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:165197 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:60522 Archived-At: In article , "Lennart Borgman" wrote: > On Tue, Dec 9, 2008 at 7:35 AM, seberino@spawar.navy.mil > wrote: > > On Dec 8, 11:44 am, Ian Eure wrote: > > > >> Try: > >> C-x 2 - split-window-vertically > >> C-x 3 - split-window-horizontally > >> > >> - Ian > > > > That works.....doing switch-to-buffer-other-window multiple times does > > not. > > It is not supposed to split the current window. Do you think the doc > string need to be enhanced? Or the name? "other-window" seems pretty obvious to me that it will use the other window that's already there. The only time it needs to create a new window is when there isn't any "other" window. Sounds like he wants a function switch-to-buffer-new-window that always splits the window. Take a look at the source code of switch-to-buffer-other-window, I think it should be pretty easy to write a command that splits the window unconditionally. -- 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 ***