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: Mark Oteiza
Subject: bug#31840: and-let* expands to if instead of when
Date: Mon, 18 Jun 2018 21:30:59 -0400
User-agent: NeoMutt/20180512

On 15/06/18 at 06:10am, Michael Heerdegen wrote:
> 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?

Oh my…  I agree, changed in 5b9cc150





reply via email to

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