projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c85e3f
)
* lisp/emacs-lisp/radix-tree.el (pcase-defmacro): Improve docstring
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 20 Apr 2019 03:31:59 +0000
(23:31 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 20 Apr 2019 03:31:59 +0000
(23:31 -0400)
lisp/emacs-lisp/radix-tree.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/radix-tree.el
b/lisp/emacs-lisp/radix-tree.el
index 75d9874b431be69bb164de5f52c5ea10df5d8102..dd65e1a0b4e1d96647d4499fe145616dd4cf4a29 100644
(file)
--- a/
lisp/emacs-lisp/radix-tree.el
+++ b/
lisp/emacs-lisp/radix-tree.el
@@
-196,8
+196,8
@@
If not found, return nil."
(eval-and-compile
(pcase-defmacro radix-tree-leaf (vpat)
- "
Build a `pcase' pattern that matches radix-tree leaf EXPVAL
.
-
VPAT is a `pcase' pattern to extract the
value."
+ "
Pattern which matches a radix-tree leaf
.
+
The pattern VPAT is matched against the leaf's carried
value."
;; FIXME: We'd like to use a negative pattern (not consp), but pcase
;; doesn't support it. Using `atom' works but generates sub-optimal code.
`(or `(t . ,,vpat) (and (pred atom) ,vpat))))