]> git.eshelyaron.com Git - emacs.git/commit
Define if-let* and derivatives as aliases for if-let etc
authorMichael Heerdegen <michael_heerdegen@web.de>
Wed, 21 Feb 2018 10:15:37 +0000 (11:15 +0100)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:14:00 +0000 (14:14 +0800)
commita381e7e05cc6b087566f04d88bd0ed5100e55cf0
tree78ebcc2d66fa0e4ce8e8b25f38fd3d9905316cee
parent02bc779494e568e16218fdf62210066f37f5b0ae
Define if-let* and derivatives as aliases for if-let etc

This commit reverts declaring `if-let' and `when-let' obsolete in
favor of the new `if-let*' and `when-let*' versions because of the
compiler warning mess (Bug#30039).  Instead we make foo-let* aliases
for foo-let.  The old single-tuple variable spec case is still
supported for backward compatibility.
* lisp/emacs-lisp/subr-x.el (if-let, when-let): Don't declare
obsolete.  Tweak edebug specs.
(and-let): Renamed from `and-let*' for compatibility with the names
`if-let' and `when-let'.
(if-let*, when-let*, and-let*): Define as aliases for `if-let',
`when-let' and `and-let'.
* test/lisp/emacs-lisp/subr-x-tests.el (if-let-single-tuple-case-test)
(when-let-single-tuple-case-test): New tests for the single-binding
tuple case.
In the whole file, prefer the names without "*".
etc/NEWS
lisp/emacs-lisp/subr-x.el
test/lisp/emacs-lisp/subr-x-tests.el