From: Scott Bell <sctb@me.com>
To: <help-gnu-emacs@gnu.org>
Cc: Heime <heimeborgia@protonmail.com>
Subject: Re: pcase with progn
Date: Wed, 27 Nov 2024 12:39:57 -0700 [thread overview]
Message-ID: <m2serc79f6.fsf@me.com> (raw)
In-Reply-To: <jHq9rWXqRnWofI7NLTSS7ikqw0LlI6OYjd4IX8MkL_mpUKa4LPtPOTO7TX9moxEgn-msXi3po0kbMQtbMT-CuyBwD9IbYgAoFpvQuZwzj0I=@protonmail.com> (Heime via Users list for the's message of "Wed, 27 Nov 2024 18:45:22 +0000")
Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
> Does pcase require progn for multiple commands?
Nope. Each clause is of the form ‘(PATTERN BODY-FORMS...)’, where the
body forms of the successful clause are evaluated and the final value is
returned. In this sense it behaves similarly to ‘cond’.
next prev parent reply other threads:[~2024-11-27 19:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 18:45 pcase with progn Heime via Users list for the GNU Emacs text editor
2024-11-27 19:39 ` Scott Bell [this message]
2024-11-27 20:50 ` Heime via Users list for the GNU Emacs text editor
2024-11-27 22:33 ` Scott Bell
2024-11-28 14:44 ` Stefan Monnier 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=m2serc79f6.fsf@me.com \
--to=sctb@me.com \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.