From: Philip Kaludercic <philipk@posteo.net>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Multiple matches with pcase
Date: Mon, 10 Jun 2024 07:35:38 +0000 [thread overview]
Message-ID: <87bk491c8l.fsf@posteo.net> (raw)
In-Reply-To: <8s7IcEEw99y8KH7va3rAQGZL7iKTWMU07u2Crusa1_jU2U1aNgfo9V4iGEkbwMOUdq73lkcqqHX_dkXmUjQBgT9JZ6EzCC7SX1k32ekUJTs=@protonmail.com> (Heime's message of "Mon, 10 Jun 2024 00:28:13 +0000")
Heime <heimeborgia@protonmail.com> writes:
> Does pcase allow multiple matches ?
>
> (pcase seltm
> ("vendi-tint", "dk-tint" ; Dark (Vivendi) Tinted Theme
> (load-theme 'modus-vivendi-tinted :no-confirm)))
Each PATTERN expands, in essence, to a predicate to call
on EXPVAL. When the return value of that call is non-nil,
PATTERN matches. PATTERN can take one of the forms:
[...]
(or PAT...) matches if any of the patterns matches.
--
Philip Kaludercic on peregrine
next prev parent reply other threads:[~2024-06-10 7:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-10 0:28 Multiple matches with pcase Heime
2024-06-10 7:35 ` Philip Kaludercic [this message]
2024-06-10 10:54 ` Heime
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=87bk491c8l.fsf@posteo.net \
--to=philipk@posteo.net \
--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.