From: "HS" <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Switch buffers in two frames
Date: 3 Feb 2007 17:45:21 -0800 [thread overview]
Message-ID: <1170553521.250190.32570@l53g2000cwa.googlegroups.com> (raw)
In-Reply-To: <mailman.3936.1170494067.2155.help-gnu-emacs@gnu.org>
On Feb 3, 7:14 am, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 03.02.2007 um 07:16 schrieb Vols:
>
> > How can I switch the buffers between FrameA and Frame B and how to
> > bind the keyboard? Thanks
>
> Why can't you switch the frames?
>
> C-x o switches to another buffer ...
>
> --
> Greetings
>
> Pete
>
> Make it simple, as simple as possible but no simpler.
> Albert Einstein
You're probably talking about a Swap Windows ?
If so, here is Yegge's version:
;; someday might want to rotate windows if more than 2 of them
(defun swap-windows ()
"If you have 2 windows, it swaps them." (interactive) (cond ((not (=
(count-windows) 2)) (message "You need exactly 2 windows to do
this."))
(t
(let* ((w1 (first (window-list)))
(w2 (second (window-list)))
(b1 (window-buffer w1))
(b2 (window-buffer w2))
(s1 (window-start w1))
(s2 (window-start w2)))
(set-window-buffer w1 b2)
(set-window-buffer w2 b1)
(set-window-start w1 s2)
(set-window-start w2 s1)))))
You can bind it with something like:
(global-set-key [f12] 'swap-windows)
Regards,
HS
prev parent reply other threads:[~2007-02-04 1:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-03 6:16 Switch buffers in two frames Vols
2007-02-03 6:49 ` Leo
2007-02-03 7:41 ` Matthew Flaschen
2007-02-03 9:14 ` Peter Dyballa
[not found] ` <mailman.3936.1170494067.2155.help-gnu-emacs@gnu.org>
2007-02-04 1:45 ` HS [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1170553521.250190.32570@l53g2000cwa.googlegroups.com \
--to=hugows@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.
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.