From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Todd Kokoszka Newsgroups: gmane.emacs.help Subject: Re: definitely a newbie question Date: Sun, 22 Sep 2002 20:18:45 +0200 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <20020922201844.A223@auburn.edu> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032727044 9693 127.0.0.1 (22 Sep 2002 20:37:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 22 Sep 2002 20:37:24 +0000 (UTC) Cc: GNU emacs mailing list Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tDTn-0002WC-00 for ; Sun, 22 Sep 2002 22:37:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tDTj-0001Ns-00; Sun, 22 Sep 2002 16:37:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17tDSV-0001Da-00 for help-gnu-emacs@gnu.org; Sun, 22 Sep 2002 16:36:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17tDSS-00018E-00 for help-gnu-emacs@gnu.org; Sun, 22 Sep 2002 16:36:02 -0400 Original-Received: from tkwire.net1.nerim.net ([62.212.96.66] helo=pixie.home) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tDSR-00013D-00 for help-gnu-emacs@gnu.org; Sun, 22 Sep 2002 16:36:00 -0400 Original-Received: (from todd@localhost) by pixie.home (8.11.6/8.11.6) id g8MIIkT01355; Sun, 22 Sep 2002 20:18:46 +0200 (CEST) (envelope-from kokostm@auburn.edu) Original-To: "Robert P. J. Day" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from rpjday@mindspring.com on Sun, Sep 22, 2002 at 03:05:27PM -0400 Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1707 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1707 On Sun 22 Sep 2002 at 15:05:27 -0400, Robert P. J. Day wrote: > > just started with emacs, and it's not clear how, if i have > more than one window up already, how, in one operation, i can > open a new file in a *new* additional window. > > if i have just one window up, then "C-x 4 f " > (find-file-other-window) will split the screen horizontally > and open that second file. > > however, if i try this on a third file, it will just replace > the contents of the other window, rather than splitting the > screen into three windows, which is what i want. > Emacs uses a buffer for each file. If you have one window open and want to open another file, you can just C-x C-f and it will replace the active buffer with the buffer of the file you found. If you type C-x b, you can switch to a different buffer. It defaults to the most recent buffer. If you want to look at both files at once, you can type C-x 2 which will split the window in 2 and this can display one buffer in each. C-x o will allow you to switch between these two buffers. You should use C-h i to get to the info reader in Emacs and choose the Emacs section. Look at the section Major Structures of Emacs, including Files, Windows and Buffers. Todd > is there a way to do this easily? or should i first split > one of the existing windows, then switch to an alternate file > in one of those windows? > > rday > > > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs >