[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why can only view at most TWO windows?
From: |
Barry Margolin |
Subject: |
Re: Why can only view at most TWO windows? |
Date: |
Tue, 09 Dec 2008 23:58:58 -0500 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.2296.1228815867.26697.help-gnu-emacs@gnu.org>,
"Lennart Borgman" <lennart.borgman@gmail.com> wrote:
> On Tue, Dec 9, 2008 at 7:35 AM, seberino@spawar.navy.mil
> <seberino@spawar.navy.mil> wrote:
> > On Dec 8, 11:44 am, Ian Eure <i...@digg.com> 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 ***