]> git.eshelyaron.com Git - emacs.git/commit
Add `comp-constraint-to-type-spec' and better handle boolean type spec
authorAndrea Corallo <akrl@sdf.org>
Sat, 14 Nov 2020 16:38:05 +0000 (17:38 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sat, 14 Nov 2020 21:06:31 +0000 (22:06 +0100)
commitf702426780475309bdd33ef896d28dd33484246b
tree2249e3d3de374e99728b0ccfef87403a41648474
parentbcecdedcb7ee02a58383de396bf05fda88654a30
Add `comp-constraint-to-type-spec' and better handle boolean type spec

* lisp/emacs-lisp/comp.el (comp-constraint-to-type-spec): New
function splitting out code from comp-ret-type-spec + better
handle boolean type specifier.
(comp-ret-type-spec): Rework to leverage
`comp-constraint-to-type-spec'.
* test/src/comp-tests.el (comp-tests-type-spec-tests): Add a
testcase.
lisp/emacs-lisp/comp.el
test/src/comp-tests.el