]> git.eshelyaron.com Git - sweep.git/commit
ADDED: in-buffer completions for source file specs
authorEshel Yaron <me@eshelyaron.com>
Sun, 22 Oct 2023 16:17:23 +0000 (18:17 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 22 Oct 2023 16:21:28 +0000 (18:21 +0200)
commitf30540376cd2d81cfa01f0eb890ff53f8de2d6b7
tree3c194be29e78183ed515bd2e3acd7e6d0c1d13d2
parent5ddb7e85bae6229d6b2a6ba8fd50dd72120c6ad1
ADDED: in-buffer completions for source file specs

* sweep.pl (sweep_alias_source_file_name_collection/2)
(sweep_alias_source_file_name/4)
(sweep_source_file_name_collection/2)
(sweep_source_file_name/3)
(sweep_path_alias_collection/2)
(sweep_matching_path_alias/3): New predicates.
(sweep_context_callable_/3): Simplify, and recognize predicate
arguments that should be source file specifications.

* sweeprolog.el (sweeprolog-source-functor-completion-candidates)
(sweeprolog-alias-source-completion-candidates)
(sweeprolog-source-completion-candidates): New functions, used in...
(sweeprolog--atom-or-functor-completion-at-point): ...here.
(sweeprolog-electric-layout-post-self-insert-function)
(sweeprolog-context-menu-for-region)
(sweeprolog-maybe-extract-region-to-predicate): Adapt.

* sweep.texi (Code Completion): Document file spec completion.
* sweeprolog-tests.el: Test it.
sweep.pl
sweep.texi
sweeprolog-tests.el
sweeprolog.el