Subject: bug#31311: 27.0; doc of `pcase'

From: Michael Heerdegen <[email-masked]>
Date: Mon, 30 Apr 2018 20:04:12 +0200

Thien-Thi Nguyen <[email-masked]> writes:

>  4ad382d 2018-04-30 add blank line before each @item in @table
>  8fccdaa 2018-04-30 rewrite @item @var{atom}
>  afb5aa4 2018-04-30 move UPattern and QPattern tables outside of @defmac pcase
>  0fa3538 2018-04-30 add blank line before each @item in @table

Thanks for the initiative.

One comment:

+@item @var{keyword}
+@itemx @var{number}
+@itemx @var{string}
+Matches if the value is @code{equal} to the literal.
+This is a special case of @code{'@var{val}}, above,
+possible because these types are self-quoting.

Not all numbers are allowed; only integers - for example

(pcase .9
  (.9 t))

|-- Unknown pattern `0.9'

See the definition of `pcase--self-quoting-p', it's intentional.

Michael.