[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a function to return buffer of the "other" window when spli
From: |
Martin Nordholts |
Subject: |
Re: Is there a function to return buffer of the "other" window when split horizontally? |
Date: |
Sun, 25 Feb 2007 23:54:33 +0100 |
Ah, nice, there was already a function for this :)
http://www.emacswiki.org/cgi-bin/emacs-en/ToggleWindowSplit
- Martin
sön 2007-02-25 klockan 23:37 +0100 skrev Lennart Borgman (gmail):
> Martin Nordholts wrote:
> > Hello!
> >
> > I fail to find a function that returns the "other" buffer when one has
> > split a window horizontally.
> >
> > other-window seemed as a good candidate at first, but I can't make it
> > work as I wish.
> >
> > How can I do this?
> >
> > I need it for a function that changes a horizontally split window to a
> > vertically split one (to quickly make more rows availible on both
> > buffers when entering a Ruby debugger session.
>
> Something like this perhaps:
>
> (save-window-excursion
> (other-window 1)
> (window-buffer))
>
> But have you checked on EmacsWiki is someone has already written a
> library for this?