* Switch buffers in two frames
@ 2007-02-03 6:16 Vols
2007-02-03 6:49 ` Leo
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Vols @ 2007-02-03 6:16 UTC (permalink / raw)
To: help-gnu-emacs
Hi, group,
I have two frames look like:
Frame A || Frame B
How can I switch the buffers between FrameA and Frame B and how to
bind the keyboard? Thanks
Vol.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Switch buffers in two frames
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>
2 siblings, 1 reply; 5+ messages in thread
From: Leo @ 2007-02-03 6:49 UTC (permalink / raw)
To: help-gnu-emacs
On 2007-02-03, Vols said:
> Hi, group,
> I have two frames look like:
> Frame A || Frame B
>
> How can I switch the buffers between FrameA and Frame B and how to
> bind the keyboard? Thanks
>
> Vol.
This looks like a job of your window manager.
--
Leo <sdl.web AT gmail.com> (GPG Key: 9283AA3F)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Switch buffers in two frames
2007-02-03 6:49 ` Leo
@ 2007-02-03 7:41 ` Matthew Flaschen
0 siblings, 0 replies; 5+ messages in thread
From: Matthew Flaschen @ 2007-02-03 7:41 UTC (permalink / raw)
Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 593 bytes --]
Leo wrote:
> On 2007-02-03, Vols said:
>
>> Hi, group,
>> I have two frames look like:
>> Frame A || Frame B
>>
>> How can I switch the buffers between FrameA and Frame B and how to
>> bind the keyboard? Thanks
>>
>> Vol.
>
> This looks like a job of your window manager.
No, I think he wanted to switch which frame contained which buffer.
I.E. Frame A contains Buffer 1, Frame B has Buffer 2. He wants a
key-combo so Frame A will have Buffer 2 and Frame B Buffer 1. I don't
think a window manager could do that. I'm not sure whether emacs can.
Matthew Flaschen
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Switch buffers in two frames
2007-02-03 6:16 Switch buffers in two frames Vols
2007-02-03 6:49 ` Leo
@ 2007-02-03 9:14 ` Peter Dyballa
[not found] ` <mailman.3936.1170494067.2155.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2007-02-03 9:14 UTC (permalink / raw)
To: Vols; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Switch buffers in two frames
[not found] ` <mailman.3936.1170494067.2155.help-gnu-emacs@gnu.org>
@ 2007-02-04 1:45 ` HS
0 siblings, 0 replies; 5+ messages in thread
From: HS @ 2007-02-04 1:45 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-04 1:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).