unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Scott Bell <sctb@me.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: pcase with progn
Date: Wed, 27 Nov 2024 20:50:58 +0000	[thread overview]
Message-ID: <IrPUop5ELSG1rPxYCM3H8g39y4PF5cdyeJJMT1WlKJ52_YZLzN6V-rOvAl9UQldVYk55mQm2CG8sZc-8hoK2tZeczy4PJmV8oudLaHybCdg=@protonmail.com> (raw)
In-Reply-To: <m2serc79f6.fsf@me.com>






Sent with Proton Mail secure email.

On Thursday, November 28th, 2024 at 7:39 AM, Scott Bell <sctb@me.com> wrote:

> 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’.

The command should return the string representation of symbol if
it exists.  When the command fails (symbol does not exist), are commands
customarily return nil or an error?



  reply	other threads:[~2024-11-27 20:50 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
2024-11-27 20:50   ` Heime via Users list for the GNU Emacs text editor [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='IrPUop5ELSG1rPxYCM3H8g39y4PF5cdyeJJMT1WlKJ52_YZLzN6V-rOvAl9UQldVYk55mQm2CG8sZc-8hoK2tZeczy4PJmV8oudLaHybCdg=@protonmail.com' \
    --to=help-gnu-emacs@gnu.org \
    --cc=heimeborgia@protonmail.com \
    --cc=sctb@me.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).