aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Heerdegen2018-06-13 04:37:38 +0200
committerMichael Heerdegen2018-06-17 15:22:30 +0200
commit45ee24efed57093b421159ca1028097952f2d564 (patch)
treef6172378d6be486b5ec339d3363a632877970108 /doc
parentfa9679ca488a17b2b6b9f31299d69c190aa86642 (diff)
downloademacs-45ee24efed57093b421159ca1028097952f2d564.tar.gz
emacs-45ee24efed57093b421159ca1028097952f2d564.zip
Allow floats as 'pcase' QPATS
* lisp/emacs-lisp/pcase.el (\`): Extend semantics of QPATS to all numbers. Add a comment explaining why we disallow some atoms as QPATS. * doc/lispref/control.texi (Backquote Patterns): Update the paragraph explaining QPATS. Remove a sentence suggesting an analogy between QPATS to self-quoting objects.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/control.texi4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 34f5f570440..975ab3d0759 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -1090,12 +1090,10 @@ Matches if @var{expval} is a vector of length @var{m} whose
1090 1090
1091@item @var{symbol} 1091@item @var{symbol}
1092@itemx @var{keyword} 1092@itemx @var{keyword}
1093@itemx @var{integer} 1093@itemx @var{number}
1094@itemx @var{string} 1094@itemx @var{string}
1095Matches if the corresponding element of @var{expval} is 1095Matches if the corresponding element of @var{expval} is
1096@code{equal} to the specified literal object. 1096@code{equal} to the specified literal object.
1097Note that, aside from @var{symbol}, this is the same set of
1098self-quoting literal objects that are acceptable as a core pattern.
1099 1097
1100@item ,@var{pattern} 1098@item ,@var{pattern}
1101Matches if the corresponding element of @var{expval} 1099Matches if the corresponding element of @var{expval}