[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

29.1 Creating Frames

To create a new frame, call the function make-frame.

Function: make-frame &optional alist

This function creates and returns a new frame, displaying the current buffer. If you are using a supported window system, it makes a window frame; otherwise, it makes a terminal frame.

The argument is an alist specifying frame parameters. Any parameters not mentioned in alist default according to the value of the variable default-frame-alist; parameters not specified even there default from the standard X resources or whatever is used instead on your system.

The set of possible parameters depends in principle on what kind of window system Emacs uses to display its frames. Voir la section Window Frame Parameters, for documentation of individual parameters you can specify.

This function itself does not make the new frame the selected frame. Voir la section Input Focus. The previously selected frame remains selected. However, the window system may select the new frame for its own reasons, for instance if the frame appears under the mouse pointer and your setup is for focus to follow the pointer.

Variable: before-make-frame-hook

A normal hook run by make-frame before it actually creates the frame.

Variable: after-make-frame-functions

An abnormal hook run by make-frame after it creates the frame. Each function in after-make-frame-functions receives one argument, the frame just created.


Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.