* Multiple matches with pcase
@ 2024-06-10 0:28 Heime
2024-06-10 7:35 ` Philip Kaludercic
0 siblings, 1 reply; 3+ messages in thread
From: Heime @ 2024-06-10 0:28 UTC (permalink / raw)
To: Heime via Users list for the GNU Emacs text editor
Does pcase allow multiple matches ?
(pcase seltm
("vendi-tint", "dk-tint" ; Dark (Vivendi) Tinted Theme
(load-theme 'modus-vivendi-tinted :no-confirm)))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Multiple matches with pcase
2024-06-10 0:28 Multiple matches with pcase Heime
@ 2024-06-10 7:35 ` Philip Kaludercic
2024-06-10 10:54 ` Heime
0 siblings, 1 reply; 3+ messages in thread
From: Philip Kaludercic @ 2024-06-10 7:35 UTC (permalink / raw)
To: Heime; +Cc: Heime via Users list for the GNU Emacs text editor
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Multiple matches with pcase
2024-06-10 7:35 ` Philip Kaludercic
@ 2024-06-10 10:54 ` Heime
0 siblings, 0 replies; 3+ messages in thread
From: Heime @ 2024-06-10 10:54 UTC (permalink / raw)
To: Philip Kaludercic; +Cc: Heime via Users list for the GNU Emacs text editor
On Monday, June 10th, 2024 at 7:35 AM, Philip Kaludercic <philipk@posteo.net> wrote:
> 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
Consequently
((or "vendi-tint" "dk-tint")
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-10 10:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-10 0:28 Multiple matches with pcase Heime
2024-06-10 7:35 ` Philip Kaludercic
2024-06-10 10:54 ` Heime
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).