]> git.eshelyaron.com Git - sweep.git/commit
Simplify 'sweeprolog-beginning-of-top-term'
authorEshel Yaron <me@eshelyaron.com>
Tue, 13 Jun 2023 15:54:50 +0000 (18:54 +0300)
committerEshel Yaron <me@eshelyaron.com>
Tue, 13 Jun 2023 15:54:50 +0000 (18:54 +0300)
commit307eaf4a80fb1f9711fc650855b168ae2f6272c2
tree2fc0fca797709ccfad8c4e6cc8e59703d440c082
parent1ede2d3f5eaf5f877f91af71a083f827aa48c6c2
Simplify 'sweeprolog-beginning-of-top-term'

Extract the core of 'sweeprolog-beginning-of-top-term' to
'sweeprolog-beginning-of-top-term-once' and make it leave point at the
very beginning of the top term, rather than at the following
character.

* sweeprolog.el (sweeprolog-beginning-of-top-term-once): New function.
(sweeprolog-beginning-of-top-term): Use it.
(sweeprolog-local-variables-collection)
(sweeprolog-analyze-term)
(sweeprolog-analyze-some-terms)
(sweeprolog-beginning-of-predicate-at-point)
(sweeprolog-terms-at-point): Adapt.
sweeprolog.el