emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cond*


From: Ihor Radchenko
Subject: Re: cond*
Date: Wed, 03 Jan 2024 15:50:43 +0000

Richard Stallman <rms@gnu.org> writes:

> What should a string used as a pattern mean in cond*?
> (What does it mean in pcase?)
>
> Should it mean a usual Emacs regular expression to match against a string?

In `pcase', string pattern matches against a string:

(pcase "string"
  ("string" 'matched-string-by-equality)
  (_ 'not-matched)) ; => 'matched-string-by-equality

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]