Function: prolog-inferior-mode
prolog-inferior-mode is an interactive and byte-compiled function
defined in prolog.el.gz.
Signature
(prolog-inferior-mode)
Documentation
Major mode for interacting with an inferior Prolog process.
The following commands are available:
C-c / prolog-help-apropos
C-c ? prolog-help-on-predicate
C-c C-d prolog-debug-on
C-c C-t prolog-trace-on
C-c C-z prolog-zip-on
C-c RET run-prolog
SPC..~ prolog-inferior-self-insert-command
Entry to this mode calls the value of prolog-mode-hook with no arguments,
if that value is non-nil. Likewise with the value of comint-mode-hook.
prolog-mode-hook is called after comint-mode-hook.
You can send text to the inferior Prolog from other buffers
using the commands send-region, send-string and M-x prolog-consult-region (prolog-consult-region).
Commands:
Tab indents for Prolog; with argument, shifts rest
of expression rigidly with the current line.
Paragraphs are separated only by blank lines and %%. %s start comments.
Return at end of buffer sends line as input.
Return not at end copies rest of line to end and sends it.
M-x comint-delchar-or-maybe-eof (comint-delchar-or-maybe-eof) sends end-of-file as input.
M-x comint-kill-input (comint-kill-input) and M-DEL (backward-kill-word) are kill commands,
imitating normal Unix input editing.
M-x comint-interrupt-subjob (comint-interrupt-subjob) interrupts the shell or its current subjob if any.
M-x comint-stop-subjob (comint-stop-subjob) stops, likewise.
M-x comint-quit-subjob (comint-quit-subjob) sends quit signal, likewise.
To find out what version of Prolog mode you are running, enter
M-x prolog-mode-version (prolog-mode-version).
In addition to any hooks its parent mode comint-mode might have run,
this mode runs the hook prolog-inferior-mode-hook, as the final or
penultimate step during initialization.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/prolog.el.gz
(define-derived-mode prolog-inferior-mode comint-mode "Inferior Prolog"
"Major mode for interacting with an inferior Prolog process.
The following commands are available:
\\{prolog-inferior-mode-map}
Entry to this mode calls the value of `prolog-mode-hook' with no arguments,
if that value is non-nil. Likewise with the value of `comint-mode-hook'.
`prolog-mode-hook' is called after `comint-mode-hook'.
You can send text to the inferior Prolog from other buffers
using the commands `send-region', `send-string' and \\[prolog-consult-region].
Commands:
Tab indents for Prolog; with argument, shifts rest
of expression rigidly with the current line.
Paragraphs are separated only by blank lines and `%%'. `%'s start comments.
Return at end of buffer sends line as input.
Return not at end copies rest of line to end and sends it.
\\[comint-delchar-or-maybe-eof] sends end-of-file as input.
\\[comint-kill-input] and \\[backward-kill-word] are kill commands,
imitating normal Unix input editing.
\\[comint-interrupt-subjob] interrupts the shell or its current subjob if any.
\\[comint-stop-subjob] stops, likewise.
\\[comint-quit-subjob] sends quit signal, likewise.
To find out what version of Prolog mode you are running, enter
\\[prolog-mode-version]."
(require 'compile)
(setq comint-input-filter 'prolog-input-filter)
(setq mode-line-process '(": %s"))
(prolog-mode-variables)
(setq comint-prompt-regexp (prolog-prompt-regexp))
(setq-local shell-dirstack-query "pwd.")
(setq-local compilation-error-regexp-alist
prolog-inferior-error-regexp-alist)
(compilation-shell-minor-mode))