* definitely a newbie question
@ 2002-09-22 19:05 Robert P. J. Day
2002-09-22 18:18 ` Todd Kokoszka
2002-09-23 3:37 ` Tom Davey
0 siblings, 2 replies; 4+ messages in thread
From: Robert P. J. Day @ 2002-09-22 19:05 UTC (permalink / raw)
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 <filename>"
(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.
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: definitely a newbie question
2002-09-22 19:05 definitely a newbie question Robert P. J. Day
@ 2002-09-22 18:18 ` Todd Kokoszka
2002-09-23 3:37 ` Tom Davey
1 sibling, 0 replies; 4+ messages in thread
From: Todd Kokoszka @ 2002-09-22 18:18 UTC (permalink / raw)
Cc: GNU emacs mailing list
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 <filename>"
> (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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: definitely a newbie question
2002-09-22 19:05 definitely a newbie question Robert P. J. Day
2002-09-22 18:18 ` Todd Kokoszka
@ 2002-09-23 3:37 ` Tom Davey
1 sibling, 0 replies; 4+ messages in thread
From: Tom Davey @ 2002-09-23 3:37 UTC (permalink / raw)
Robert P. J. Day writes:
> 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.
Hmm. I did a quick scan of the manuals and doc strings, and it's not
clear to me either.
> 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?
I think you've come up with the quickest method short of writing a
custom function. It would seem to be easy to alter
find-file-other-window to create an additional window no matter how many
windows already exist. I'm a newbie myself, though, so I wouldn't be
surprised is somebody else on this excellent list has a better answer.
--
Tom Davey
tom@tomdavey.com
blog: http://www.monstersfromtheid.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.1032721520.14238.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2002-09-23 13:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-22 19:05 definitely a newbie question Robert P. J. Day
2002-09-22 18:18 ` Todd Kokoszka
2002-09-23 3:37 ` Tom Davey
[not found] <mailman.1032721520.14238.help-gnu-emacs@gnu.org>
2002-09-23 13:05 ` Kai Großjohann
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.