fix compilation of elisp forms with empty bodies
authorBT Templeton <bpt@hcoop.net>
Tue, 21 Jun 2011 03:04:45 +0000 (23:04 -0400)
committerBT Templeton <bpt@hcoop.net>
Fri, 3 Feb 2012 23:53:48 +0000 (18:53 -0500)
commitd5ac6923c38cdf4b62e0bdbc911611ae35a07c1c
tree8e688b904fa3c8447994731f6700e39739bd0a33
parentb652e2b93fbcbc43ac8b1e7d7587904f0bf2bc62
fix compilation of elisp forms with empty bodies

* module/language/elisp/compile-tree-il.scm (generate-let)
  (generate-let*, compile-lambda, compile-with-added-symbols)
  (compile-progn, compile-if): Return nil if the form's body is empty.
* test-suite/tests/elisp-compiler.test ("Sequencing")["empty progn"]:
  New test.
  ("Conditionals")["if with no else"]: New test.
  ("Let and Let*")["empty let, empty let*"]: New test.
  ("Lambda Expressions")["empty lambda"]: New test.
module/language/elisp/compile-tree-il.scm
test-suite/tests/elisp-compiler.test