From: Martin Nordholts <enselic@gmail.com>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: Emacs User List <help-gnu-emacs@gnu.org>
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 [thread overview]
Message-ID: <1172444073.7905.5.camel@martin-laptop> (raw)
In-Reply-To: <45E20FB1.8070508@gmail.com>
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?
prev parent reply other threads:[~2007-02-25 22:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-25 22:28 Is there a function to return buffer of the "other" window when split horizontally? Martin Nordholts
2007-02-25 22:37 ` Lennart Borgman (gmail)
2007-02-25 22:54 ` Martin Nordholts [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1172444073.7905.5.camel@martin-laptop \
--to=enselic@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).