Wrapper for XEmacs, for use with ROX-Filer
Diego Zamboni, <zamboni@cerias.purdue.edu>

Features:

- Opens a new window on an existing xemacs if possible, otherwise runs
  a new xemacs.

- If run with no arguments, simply opens a new window (it uses the
  current display, so you can remotely open a new window on a
  different computer, using a previously running xemacs).

- If run with arguments, opens the specified files.

- Can keep a cache of recently opened files. If you have the
  application-specific menus feature (which is in a patch at
  sourceforge.net, but not in CVS yet), this cache is used to generate
  a menu with the most recent files.

To install:

- If you don't want to use the file-cache feature:

  Change the line that reads:

  $USECACHE = 1;

  in AppRun to:

  $USECACHE = undef;

  Install the application as usual. You can install it system-wide if
  you want.

- If you want to use the file-cache feature, you need to install your
  private copy of the application directory, because it needs to
  modify the file AppMenuStatic.txt in it to update the cache. I keep
  mine in $HOME/local/Rox/Apps/XEmacs/

  For now, the cache of recent files only gets displayed when you
  right-click on the application on the pinboard or on panels, so you
  need to put the application there to see the menu. The menu will
  also be updated if you use the application from the filer, but the
  cache of recent files will not be displayed if you right-click on
  the application on the filer.

Notes:

- To be able to use the client features of the wrapper (and not have
  it start a new xemacs every time), you have to add the following
  line to your .emacs file:

  (gnuserv-start)

- Only files opened through the application wrapper are added to the
  cache of recent files. Files opened directly from within XEmacs are
  not. I guess a hook could be written to have XEmacs update the cache
  when files are opened from within it, but I won't write it. If you
  do, please send it to me, and I'll include it.

- The file AppRun.ksh contains the first version of the wrapper,
  written in ksh. It works, but don't use it. It's there only for
  historic value.

- Please send me any comments, bug reports or suggestions to
  zamboni@cerias.purdue.edu.
