all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Why can only view at most TWO windows?
Date: Tue, 09 Dec 2008 23:58:58 -0500	[thread overview]
Message-ID: <barmar-C2B81B.23585809122008@mara100-84.onlink.net> (raw)
In-Reply-To: mailman.2296.1228815867.26697.help-gnu-emacs@gnu.org

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


  parent reply	other threads:[~2008-12-10  4:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 19:02 Why can only view at most TWO windows? seberino
2008-12-08 19:07 ` Charles Sebold
2008-12-08 19:09   ` Charles Sebold
2008-12-08 19:44 ` Ian Eure
     [not found] ` <mailman.2252.1228765492.26697.help-gnu-emacs@gnu.org>
2008-12-09  6:35   ` seberino
2008-12-09  9:44     ` Lennart Borgman
     [not found]     ` <mailman.2296.1228815867.26697.help-gnu-emacs@gnu.org>
2008-12-10  4:58       ` Barry Margolin [this message]
2008-12-10  6:43         ` seberino
2008-12-11  6:38           ` Kevin Rodgers
2008-12-10  6:43         ` 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=barmar-C2B81B.23585809122008@mara100-84.onlink.net \
    --to=barmar@alum.mit.edu \
    --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.