GNU Emacs for emx FAQ: Frequently asked questions with answers

1:   How do I install Emacs in a directory other than /emacs?

  To install Emacs in, say, /usr/local/emacs, type

    cd \usr\local

  instead of

    cd \

  when following the installation instructions in emx/README.  Set the
  environment variables correctly, for instance

    SET EMACSLOADPATH=c:/usr/local/emacs/19.22/lisp

  Ignore the following (benign) warning message:

    Warning: lisp library (/emacs/19.22/lisp) does not exist.

  If you don't want to install Emacs in a subdirectory named `emacs',
  move the files after unzipping.  Example:

    move emacs\19.22 \public\gnuemacs

2:   Why do I get two windows, one of which is empty, if I start Emacs
     with the -d option?

  The `empty' window contains Emacs proper (emacs.exe), the PM window
  contains the PM interface (pmemacs.exe).  There may be multiple PM
  windows (use C-x 5 2 to open another PM window, called `frame' in
  GNU jargon).  To avoid the emacs.exe window, start emacs.exe
  minimized.  The Emacs object created by instemacs.cmd automatically
  starts emacs.exe minimized.

3:   I don't get prompts from the Data Logic shell when running it in
     a shell-mode window.

  That's a bug in older versions of the shell.  Get version 2.2
  (V226Beta, ms_sh22.zip) or later or use bash (ftp-os2.cdrom.com:
  os2/2_x/unix/shells/bash.zip).

4:   Where are the scrollbars?

  The PM interface does not yet support scrollbars.

5:   How do I get white on black output in PM mode?

  Specify the foreground and background colors on the command line
  when starting Emacs:

    emacs -d -fg white -bg black

  Using a "System VIO" font is recommended for white on black.  For
  black on white, the PM fonts look better.

6:   The PM window of Emacs isn't repainted properly, some pixels are
     left when scrolling.

  The font metrics of the first version of SMALL.FON are wrong.  See
  README on how to patch that file.

7:   Emacs doesn't find my info files.

  Set the INFOPATH environment variable.  It may contain multiple
  directories, separated by semicolons.  Alternatively, you can set
  Info-default-directory-list in .emacs or site-start.el.

8:   Emacs cannot read compressed files (compressed info files, for
     instance).

  This is due to shell-command-on-region not using binary mode when
  writing the region to a temporary file.  To fix this, add a regexp
  matching the compressed files.  When using gzip, for instance, use

    (emx-add-binary-mode "\.gz$")

  in .emacs or site-start.el.

9:   I cannot define the F1, F10 and Alt+F4 keys.

  F1, F10 and Alt+F4 (and some other keys) are used by the
  Presentation Manager as shortcuts.  Set the `shortcuts' frame
  parameter to nil.  This disables the shortcuts.  Here's an example:

    (setq default-frame-alist (append '(shortcuts . nil) default-frame-alist))

  See README for details. 

10:  I want to try the font menu, but my mouse has only two buttons.

  You can temporarily swap mouse buttons 2 and 3 by setting the
  mouse-buttons frame parameter to "123":

    (modify-frame-parameters nil '((mouse-buttons . "123")))

  Alternatively, you can bind the font menu to another, unused mouse
  event (it cannot be bound to a keyboard event):

    (global-set-key [C-S-down-mouse-1] 'mouse-set-font)

