diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-01-16 10:15:47 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-01-16 14:21:57 -0500 |
commit | 0ab56a4e935b3aa759229923804ba33c841f425c (patch) | |
tree | 5657e2c4db800dd0c9cc88550b9955bbe132c66f /doc/lispref | |
parent | df34ed8cbfdcf4584aa0ebfe827fac3a8d932bb6 (diff) | |
download | emacs-0ab56a4e935b3aa759229923804ba33c841f425c.tar.gz emacs-0ab56a4e935b3aa759229923804ba33c841f425c.tar.bz2 emacs-0ab56a4e935b3aa759229923804ba33c841f425c.zip |
* lisp/emacs-lisp/pcase.el: Add support for `not` to `pred`
(pcase--split-pred, pcase--funcall): Adjust for `not`.
(pcase--get-macroexpander): New function.
(pcase--edebug-match-macro, pcase--make-docstring)
(pcase--macroexpand): Use it.
* lisp/emacs-lisp/radix-tree.el (radix-tree-leaf): Use it!
* doc/lispref/control.texi (The @code{pcase} macro): Document it.
* lisp/emacs-lisp/ert.el (ert--explain-equal-rec): Remove redundant test.
Diffstat (limited to 'doc/lispref')
-rw-r--r-- | doc/lispref/control.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index 55bcddb31aa..80e9eb7dd8e 100644 --- a/doc/lispref/control.texi +++ b/doc/lispref/control.texi @@ -557,8 +557,9 @@ Likewise, it makes no sense to bind keyword symbols @item (pred @var{function}) Matches if the predicate @var{function} returns non-@code{nil} -when called on @var{expval}. -the predicate @var{function} can have one of the following forms: +when called on @var{expval}. The test can be negated with the syntax +@code{(pred (not @var{function}))}. +The predicate @var{function} can have one of the following forms: @table @asis @item function name (a symbol) |