all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: pietru@caramail.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Does pcase need progn in if condition
Date: Fri, 21 May 2021 19:09:56 +0200	[thread overview]
Message-ID: <trinity-6a3dd6b3-a2b2-48af-a1e0-07a3ca1665d0-1621616996798@3c-app-mailcom-bs04> (raw)
In-Reply-To: <trinity-f3f2f159-5e0a-478b-985d-d513f13deb78-1621589150568@3c-app-mailcom-bs04>

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	other threads:[~2021-05-21 17:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21  9:25 Does pcase need progn in if condition pietru
2021-05-21 17:09 ` Christopher Dimech [this message]
2021-05-22  4:39   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-22  9:09     ` Jean Louis
2021-05-22  9:32       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-22 11:08         ` Jean Louis
2021-05-22 11:37           ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-21 21:26 ` Emanuel Berg via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-6a3dd6b3-a2b2-48af-a1e0-07a3ca1665d0-1621616996798@3c-app-mailcom-bs04 \
    --to=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pietru@caramail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.