This section describes the Emacs/Quintus Prolog interface and presupposes some knowledge of the Emacs editor. The interface supports GNU Emacs and XEmacs. For information on obtaining these editors, see http://www.gnu.org and http://www.xemacs.org.

There are three different ways to run Prolog interfaced to Emacs:

  1. From the command prompt, invoke a Prolog executable file or saved state with the argument +. This starts up Emacs and causes it to run Prolog in an Emacs buffer. See ema-ove-upe-epe for details.
  2. From QUI start an Emacs session. In this case the Prolog top-level interaction is not done in an Emacs buffer because the QUI main window is being used for that purpose. This uses the Emacs Server feature of GNU Emacs and is described in qui-ied-ige.
  3. From a running Emacs session, cause a Prolog to be started in a buffer. To do this, the Emacs interface code must first be loaded into Emacs--this could be done in an Emacs initialization file. This is described in quintus-directory/editor3.5/gnu/README.