SXEmacs can be used with the X Window System and a window manager like MWM or TWM. In that case, the X window manager opens, closes, and resizes SXEmacs frames. You use the window manager’s mouse gestures to perform the operations. Consult your window manager guide or reference manual for information on manipulating X windows.
When you are working under X, each X window (that is, each SXEmacs frame) has a menu bar for mouse-controlled operations (see Pull-down Menus).
SXEmacs under X is also a multi-frame SXEmacs. You can use the New Frame menu item from the File menu to create a new SXEmacs frame in a new X window from the same process. The different frames will share the same buffer list, but you can look at different buffers in the different frames.
find-file-other-frame is just like
but creates a new frame to display the buffer in first. This is
normally bound to C-x 5 C-f, and is what the Open File, New
Frame menu item does.
switch-to-buffer-other-frame is just like
switch-to-buffer, but creates a new frame to display the buffer
in first. This is normally bound to C-x 5 b.
You can specify a different default frame size other than the one provided.
Use the variable
default-frame-plist, which is a plist of default
values for frame creation other than the first one. These may be set in
your init file, like this:
(setq default-frame-plist '(width 80 height 55))
This variable has replaced
default-frame-alist, which is
For values specific to the first SXEmacs frame, you must use X resources.
x-frame-defaults takes an alist of default frame
creation parameters for X window frames. These override what is
specified in ~/.Xdefaults but are overridden by the arguments to
the particular call to
When you create a new frame, the variable
is called with one argument, the frame just created.
If you want to close one or more of the X windows you created using New Frame, use the Delete Frame menu item from the File menu.
If you are working with multiple frames, some special information applies:
frame-icon-title-formatdetermine the title of the frame and the title of the icon that results if you shrink the frame.
auto-raise-frameposition a frame. If true,
auto-lower-framelowers a frame to the bottom when it is no longer selected. If true,
auto-raise-frameraises a frame to the top when it is selected. Under X, most ICCCM-compliant window managers will have options to do this for you, but these variables are provided in case you are using a broken window manager.