Previous: Frame Configurations, Up: Frames [Contents][Index]
SXEmacs provides many hooks that are called at various times during a frame’s lifetime. See Hooks.
This hook is called each time a frame is created. The functions are called with one argument, the newly-created frame.
This hook is called each time a frame is deleted. The functions are called with one argument, the about-to-be-deleted frame.
This is a normal hook that is run just after a frame is selected. The
function default-select-frame-hook
, which implements auto-raising
(see Raising and Lowering), is normally attached to this hook.
Note that calling select-frame
does not necessarily set the
focus: The actual window-system focus will not be changed until the next
time that SXEmacs is waiting for an event, and even then, the window
manager may refuse the focus-change request.
This is a normal hook that is run just before a frame is deselected
(and another frame is selected). The function
default-deselect-frame-hook
, which implements auto-lowering
(see Raising and Lowering), is normally attached to this hook.
This hook is called each time a frame is mapped (i.e. made visible). The functions are called with one argument, the newly mapped frame.
This hook is called each time a frame is unmapped (i.e. made invisible or iconified). The functions are called with one argument, the newly unmapped frame.