unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: enselic@gmail.com
Cc: 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:37:37 +0100	[thread overview]
Message-ID: <45E20FB1.8070508@gmail.com> (raw)
In-Reply-To: <1172442496.7905.3.camel@martin-laptop>

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?

  reply	other threads:[~2007-02-25 22:37 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) [this message]
2007-02-25 22:54   ` Martin Nordholts

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=45E20FB1.8070508@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=enselic@gmail.com \
    --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.
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).