To create a new frame, call the function
This function creates and returns a new frame, displaying the current buffer.
The parameters argument is an alist that specifies frame parameters for the new frame. See Frame Parameters. If you specify the
terminalparameter in parameters, the new frame is created on that terminal. Otherwise, if you specify the
window-systemframe parameter in parameters, that determines whether the frame should be displayed on a text terminal or a graphical terminal. See Window Systems. If neither is specified, the new frame is created in the same terminal as the selected frame.
Any parameters not mentioned in parameters default to the values in the alist
default-frame-alist(see Initial Parameters); parameters not specified there default from the X resources or its equivalent on your operating system (see X Resources). After the frame is created, this function applies any parameters specified in
frame-inherited-parameters(see below) it has no assigned yet, taking the values from the frame that was selected when
Note that on multi-monitor displays (see Multiple Terminals), the window manager might position the frame differently than specified by the positional parameters in parameters (see Position Parameters). For example, some window managers have a policy of displaying the frame on the monitor that contains the largest part of the window (a.k.a. the dominating monitor).
This function itself does not make the new frame the selected frame. See Input Focus. The previously selected frame remains selected. On graphical terminals, however, the windowing system may select the new frame for its own reasons.
An abnormal hook run by
make-frameafter it created the frame. Each function in
after-make-frame-functionsreceives one argument, the frame just created.
Note that any functions added to these hooks by your initial file are usually not run for the initial frame, since Emacs reads the initial file only after creating that frame. However, if the initial frame is specified to use a separate minibuffer frame (see Minibuffers and Frames), the functions will be run for both, the minibuffer-less and the minibuffer frame.
This variable specifies the list of frame parameters that a newly created frame inherits from the currently selected frame. For each parameter (a symbol) that is an element in this list and has not been assigned earlier when processing
make-frame, the function sets the value of that parameter in the created frame to its value in the selected frame.