This library provides a prolog-emacs interface. This interface is complementary to (and independent from) the emacs mode, which is used to develop programs from within the emacs editor/environment. Instead, this library allows calling emacs from a running Prolog program. This facilitates the use of emacs as a ``user interface'' for a Prolog program. Emacs can be made to:
In order for this library to work correctly, the following is needed:
;; Start a server that emacsclient can connect to. (server-start)Or typing M-x server-start within emacs.
Examples:
Assuming that a .pl file loads this library, then:
Usage:
Opens the given file for editing in emacs. Waits for editing to finish before continuing.
Usage:
Opens the given file for editing in emacs and continues without waiting for editing to finish.
Usage:
Executes in emacs the lisp code given as argument. Waits for the command to finish before continuing.
Usage:
Executes in emacs the lisp code given as argument and continues without waiting for it to finish.