From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Split frame? Date: Tue, 13 Mar 2007 22:04:53 +0000 Organization: SunSITE.dk - Supporting Open source Message-ID: <45f72006$0$90271$14726298@news.sunsite.dk> References: <1173812471.694871.105960@q40g2000cwq.googlegroups.com> <1173821874.429444.164170@n76g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173825589 2450 80.91.229.12 (13 Mar 2007 22:39:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2007 22:39:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 13 23:39:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HRFeg-0002mT-1x for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Mar 2007 23:39:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRFfU-0005DP-Gy for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Mar 2007 17:40:32 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.freenet.de!news.albasani.net!nuzba.szn.dk!news.szn.dk!pnx.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Icedove 1.5.0.9 (X11/20061220) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1173821874.429444.164170@n76g2000hsh.googlegroups.com> Original-Lines: 69 Original-NNTP-Posting-Host: 62.56.88.164 Original-X-Trace: news.sunsite.dk DXC=^3:[?mhX<84\:k25BLkF8; YSB=nbEKnk; ebg1>^?UCA:G1[Bg<0aH50\VT\m5_SIb6U_42Df:PaK8TcL2h5ahoT?kF_>m>CYcV?DlP0G9mo]Z; Fh5=ED_h51>?DnJl7^Pb6? Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:146336 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41940 Archived-At: Vols, I think you are slightly confused about how Emacs handles buffers (files) and windows. Unlike most MS-Windows applications, a file is not locked to a window. It is possible to have a file displayed in several windows at once; all will be updated when any edits are made. Likewise, it is possible to remove a buffer from a window; It will still be loaded in Emacs, but not currently displayed. Assuming you have two unloaded files, foo.c and goo.h, try this C-x 0 * Closes all windows except the current one, and expands remaining window to size of frame. C-x f goo.h RET * Reads goo.h from disk, and displays it in current window, hiding previously displayed buffer. C-x f foo.c RET * Reads foo.c from disk, and displays it in current window, hiding previously displayed buffer (goo.h). NB goo.h is still open in emacs, but is not associated with a buffer, and therefore not displayed. C-x 3 * splits window into two windows, horizontally. Both windows display the same buffer, foo.c C-x o * Swaps from current window into next window. C-x b goo.h RET Makes current window display the buffer 'goo.h' C-x o * Swaps from current window into next window. After this, foo.c should be on the left, goo.h on the right, and you are editing foo.c You can press C-x o to swap between them at any time. NB In Emacs, A 'buffer' is either a buffer that has been loaded from disk, an unsaved document, output from Emacs, etc. A frame is what is normally called a window in MS-Windows. A window is what is normally called a MDI window in MS-Windows. This is because Emacs was originally written before windowing systems were invented. HTH. Colin S. Miller