# next-window-find-file(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

next-window-find-file - Split the current window and find file

## SYNOPSIS

next-window-find-file "file" (C-x 4)

## DESCRIPTION

next-window-find-file splits the current window into two near equal windows, and loads the given file into the current window. It is effectively a split-window-vertically(2) command followed by a find-file(2).

When there is insufficient space in the current window to perform the split, then the current window is replaced. The requested file is always displayed, if the file does not already exist it is effectively created within MicroEmacs (although it will not exist on the disk until a save operation is performed).

The numeric argument n can be used to modify the default behaviour of the command, where the bits are defined as follows:

0x01

If the file does not exist and this bit is not set the command fails at this point. If the file does not exist and this bit is set (or no argument is specified as the default argument is `1`) then a new empty buffer is created with the given file name, saving the buffer subsequently creates a new file.

0x02

If this bit is set the file will be loaded with binary(2m) mode enabled. See help on binary mode for more information on editing binary data files.

0x04

If this bit is set the file will be loaded with crypt(2m) mode enabled. See help on crypt mode for more information on editing encrypted files.

0x08

If this bit is set the file will be loaded with rbin(2m) mode enabled. See help on rbin mode for more information on efficient editing of binary data files.

## SEE ALSO

find-file(2), next-window-find-buffer(2), split-window-vertically(2), binary(2m), crypt(2m), rbin(2m).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>