]> git.eshelyaron.com Git - dict.git/commit
ADDED: minor mode for automatic whitespace insertion
authorEshel Yaron <me@eshelyaron.com>
Mon, 14 Nov 2022 16:19:31 +0000 (18:19 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 14 Nov 2022 16:19:31 +0000 (18:19 +0200)
commit27d394ea8938bafd05323b8c34414293f9bf6c0c
treea17cace68b896e96223cd6ee7d033325c077a633
parent3a72df5958bd7ba3bb54238a9a8cc12adb830620
ADDED: minor mode for automatic whitespace insertion

* sweep.pl (sweep_context_callable/2): only consider the context to be
callable if a neck is present up the tree, i.e. not in the head.
* sweeprolog.el (sweeprolog-context-callable-p): new function,
extracted from (sweeprolog-predicate-completion-at-point)
(sweeprolog-electric-layout-post-self-insert-function): new function.
(sweeprolog-electric-layout-mode): new minor mode.
sweep.pl
sweeprolog-tests.el
sweeprolog.el