]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/pcase.el: Add support for `not` to `pred`
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 16 Jan 2021 15:15:47 +0000 (10:15 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 16 Jan 2021 19:21:57 +0000 (14:21 -0500)
commit0ab56a4e935b3aa759229923804ba33c841f425c
tree5657e2c4db800dd0c9cc88550b9955bbe132c66f
parentdf34ed8cbfdcf4584aa0ebfe827fac3a8d932bb6
* 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.
doc/lispref/control.texi
etc/NEWS
lisp/emacs-lisp/ert.el
lisp/emacs-lisp/pcase.el
lisp/emacs-lisp/radix-tree.el
test/lisp/emacs-lisp/pcase-tests.el