Go to the first, previous, next, last section, table of contents.


The Current Window

The current window is the window that functions operate on by default; every time the event loop receives some input from the user the window which the input event originated in becomes the current window. It is also possible for Lisp programs to set the current window, either permanently or temporarily.

The active window is the window which the windowing system will send any keyboard input to. Since Jade sets the current window to where it receives input from, it is often the case that the current window is the same as the active window. Jade also provides the means to set the active window; in some cases this may be best left to the user though.

Function: current-window
This function returns the current window.

(current-window)
    => #<window 20971524 programmer.texi>

Function: set-current-window window &optional activate
This function sets the current window to be the window window. If the optional argument activate is non-nil this window will also become the active window.

When using the activate argument bear in mind that it may be confusing for the user if the active window is suddenly changed; only change the active window synchronously with some input from the user.

Special Form: with-window window forms...
Temporarily sets the current window to the value of evaluating the form window, then uses an implicit progn to evaluate the forms. The old current window is then reinstated before returning the value of the implicit progn.


Go to the first, previous, next, last section, table of contents.