Version: 1.5#118 (2000/4/19, 18:13:43 CEST)
Version of last change: 1.5#54 (2000/2/10, 21:32:23 CET)
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:
emacs editor on the same machine where the executable calling this library is executing.
emacs should be running the
emacs server. This can be done by including the following line in your
.emacs file:
;; Start a server that emacsclient can connect to. (server-start)Or typing
M-x server-start within
emacs.
This suffices for using
emacs to edit files. For running arbitrary code the following also needs to be added to the
.emacs file:
(setq enable-local-eval t)
(setq enable-local-eval nil)
(setq enable-local-eval 'maybe)
Examples:
Assuming that a .pl file loads this library, then:
..., emacs_edit('foo'), ...
foo for editing in
emacs.
..., emacs_eval_nowait("(run-ciao-toplevel)"), ...
emacs.
emacs)emacs)
Usage: emacs_edit(+filename)
Usage: emacs_edit_nowait(+filename)
Usage: emacs_eval(+elisp_string)
Usage: emacs_eval_nowait(+elisp_string)
Usage: elisp_string(L)
Go to the first, previous, next, last section, table of contents.