* lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations
commitd5ee655c1710a62e01513fd20256a7cf35d52167
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 28 Oct 2015 17:59:42 +0000 (28 13:59 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 28 Oct 2015 17:59:42 +0000 (28 13:59 -0400)
tree9d53dd575f27624e44ec3851b3012f621e50f44b
parent1f02cbea8b489ed7676110431aa36ad5abc47d9b
* lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations

(macroexp-unprogn): Make sure we never return an empty list.
(macroexp-if): Remove unused (and unsafe) optimization.
Optimize (if A T (if B T E)) into (if (or A B) T E) instead, which does
occur occasionally.
lisp/emacs-lisp/macroexp.el