]> git.eshelyaron.com Git - sweep.git/commit
ENHANCED: 'sweeprolog-find-predicate/module' improvements
authorEshel Yaron <me@eshelyaron.com>
Sun, 11 Jun 2023 17:56:40 +0000 (20:56 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Jun 2023 17:56:40 +0000 (20:56 +0300)
commit486c04fd90d8e48ef40c551ffd1d23ccf42178ac
tree03b4ee2b32a479e95c8f91026817004fa0932f69
parent27446de961f91bc42aa3ee0d21f7aae3c0c6d315
ENHANCED: 'sweeprolog-find-predicate/module' improvements

Allow finding modules and predicates in another window with prefix
argument.  Also improve prompt for 'sweeprolog-find-predicate'.

* sweeprolog.el (sweeprolog-read-predicate-prompt): Remove trailing
colon and space.
(sweeprolog-predicate-visible-p-function): New user option.
(sweeprolog-read-predicate): Use it, and format PROMPT with predicate
at point as the default argument.
(sweeprolog-find-module)
(sweeprolog-find-predicate): Add optional argument OTHER-WINDOW.
(sweeprolog-describe-predicate): Adapt PROMPT argument passed to
'sweeprolog-read-predicate'.

* README.org (Finding Prolog Code): Expand.
README.org
sweeprolog.el