Function: prolog-help-on-predicate
prolog-help-on-predicate is an interactive and byte-compiled function
defined in prolog.el.gz.
Signature
(prolog-help-on-predicate)
Documentation
Invoke online help on the atom under cursor.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/prolog.el.gz
(defun prolog-help-on-predicate ()
"Invoke online help on the atom under cursor."
(interactive)
(cond
;; Redirect help for SICStus to `prolog-find-documentation'.
((eq prolog-help-function-i 'prolog-find-documentation)
(prolog-find-documentation))
;; Otherwise, ask for the predicate name and then call the function
;; in prolog-help-function-i
(t
(let* ((word (prolog-atom-under-point))
(predicate (read-string (format-prompt "Help on predicate" word)
nil nil word))
;;point
)
(if prolog-help-function-i
(funcall prolog-help-function-i predicate)
(error "Sorry, no help method defined for this Prolog system"))))
))