bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31840: and-let* expands to if instead of when


From: Michael Heerdegen
Subject: bug#31840: and-let* expands to if instead of when
Date: Fri, 15 Jun 2018 06:10:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Jonas Bernoulli <jonas@bernoul.li> writes:

> (and-let* ((a 'a))
>   (body-1)
>   (body-n))
>
> expands to
>
> (let* ((a (and t 'a)))
>   (if a
>       (body-1)
>     (body-n)))
>
> but according to its doc-string ("Like `when-let*'...")
> it is supposed to expand to
>
> (let* ((a (and t 'a)))
>   (if a
>       (progn
>         (body-1)
>         (body-n))))

Good catch.

Looks like a typo - the `if' should just be a `when'.  Mark, can you
have a look?


Thanks,

Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]