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

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

Re: Does pcase need progn in if condition


From: Christopher Dimech
Subject: Re: Does pcase need progn in if condition
Date: Fri, 21 May 2021 19:09:56 +0200

I do not think it needs a progn as it consists of a single expression.

> Sent: Friday, May 21, 2021 at 9:25 PM
> From: pietru@caramail.com
> To: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Does pcase need progn in if condition
>
>
> Does "pcase" need progn in an "if" condition
>
> --------
>
>  (if condition
>
>          (pcase n
>
>           (0  (save-excursion (insert s)))
>
>           ((or 1 2 3 4 5)
>               (delete-region (point) b)
>               (save-excursion (insert s)))
>
>             (_  (delete-region (point) b))) ))
>
>



reply via email to

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