help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Split frame?


From: Tassilo Horn
Subject: Re: Split frame?
Date: Tue, 13 Mar 2007 20:33:31 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

"Vols" <address@hidden> writes:

Hi,

> I have 3 file in one frame, say file1.c, file2.c and file3.c I use
> 'C-x 3' to split the frame vertically.

You confuse frames and windows. Please have a look at

,----[ (info "(emacs)Buffers") ]
| The text you are editing in Emacs resides in an object called a
| "buffer".
`----

,----[ (info "(emacs)Windows") ]
| Emacs can split a frame into two or many windows.
`----

,----[ (info "(emacs)Frames") ]
| When using a graphical display, you can create multiple windows at the
| system in a single Emacs session.  Each system-level window that
| belongs to Emacs displays a "frame" which can contain one or several
| Emacs windows.
`----

> The problem is these two frames are identical.

Those two _windows_ display the same _buffers_.

> When I open a 'file4.c' in left frame, it appears in right frame too.

Sure, cause both windows are associated with the same buffer.

> How to make these two frames independent?

You have to switch to another buffer in one of the windows. You do that
with `C-x b' (`switch-buffer'). There are many different modes and
functions for fast and convenient buffer switching/maneuvering like
`ibuffer' and `ido', just to name a few. Have a look at the docs and
www.emacswiki.org.

Bye,
Tassilo
-- 
The glass is neither half-full nor half-empty: it's twice as big as it
needs to be.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]