This section describes some of the most common problems that can occur using the LispWorks X11/Motif GUI, which is available on Linux, FreeBSD, Mac OS X and UNIX.
Running under X11/Motif, LispWorks may print a message saying that it is unable to connect to the X server. Check that the server is running, and that the machine the image is running on is authorized to connect to it. (See the manual entry for command xhost(1)
.)
On Mac OS X, if you attempt to start the LispWorks X11/Motif GUI in Terminal.app, an error message Failed to open display NIL
is printed. Instead, run LispWorks in X11.app.
LispWorks may print a message saying that it is unable to open a font and is using a default instead. The environment will still run but it may not always use the right font.
LispWorks comes configured with the fonts most commonly found with the target machine type. However the fonts supplied vary between implementations and installations. The fonts available on a particular server can be determined by using the xlsfonts(1)
command. Fonts are chosen based on the X11 resources. See X11/Motif resources for more information.
Running under X11, on starting up the environment, or any tool within it, LispWorks may print a message saying that a particular color could not be allocated.
This problem can occur if your X color map is full. If this is the case, LispWorks cannot allocate all the colors that are specified in the X11 resources.
This may happen if you have many different colors on your screen, for instance when displaying a picture in the root window of your display.
Colors are chosen based on the X11 resources. See X11/Motif resources for more information.
To remove the problem, you can then change the resources (for example, by editing the file mentioned in X11/Motif resources) to reduce the number of colors LispWorks allocates.
Mnemonic processing on Motif always uses mod1
, so we disable mnemonics if that is Lisp's Meta
modifier to allow the Emacs-style editor to work. (The accelerator code uses the same keyboard mapping check as the mnemonics so Alt
accelerators would also get disabled if you had them.)
On X11/Motif, if you want Emacs-style keys Ctrl-n, Ctrl-p
in LispWorks list panels such as the Editor's buffers view, add the following to the X11 resources (see X11/Motif resources):
!
! Enable Ctrl-n, Ctrl-p in list panels
Lispworks*XmList.translations: #override\n\
Ctrl<Key>p : ListPrevItem()\n\
Ctrl<Key>n : ListNextItem()
!
When using X11/Motif, LispWorks reads X11 resources in the normal way, using the application class Lispworks. The file app-defaults/Lispworks
is used to supply fallback resources. You can copy parts of this file to ~/Lispworks
or some other configuration-specific location if you wish to change these defaults, and similarly for app-defaults/GcMonitor
.
When attempting to starting the LispWorks X11/Motif GUI when the required version of Motif is not installed, LispWorks prints the error message:
Error: Could not register handle for external module X-UTILITIES::CAPIX11:
dyld: /Applications/LispWorks 7.0/lispworks-7-0-0-macos-universal-motif can't open library: /usr/local/lib/libXm.4.dylib (No such file or directory, errno = 2)
.
Ensure you install Motif as described in The X11 GTK+ and Motif GUIs. Restart X11.app and LispWorks after installation of Motif.
LispWorks Release Notes and Installation Guide - 2 Mar 2015