projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a41580
)
* lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.
author
Mark Oteiza
<mvoteiza@udel.edu>
Fri, 4 Nov 2016 14:23:46 +0000
(10:23 -0400)
committer
Mark Oteiza
<mvoteiza@udel.edu>
Fri, 4 Nov 2016 14:23:46 +0000
(10:23 -0400)
lisp/emacs-lisp/pcase.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/pcase.el
b/lisp/emacs-lisp/pcase.el
index 0b8dddfacc91d723e993a9bf14ade88d0111443d..896ad925928f5b63da67e6959854db9ffb948047 100644
(file)
--- a/
lisp/emacs-lisp/pcase.el
+++ b/
lisp/emacs-lisp/pcase.el
@@
-298,6
+298,8
@@
any kind of error."
;;;###autoload
(defmacro pcase-dolist (spec &rest body)
+ "Like `dolist' but where the binding can be a `pcase' pattern.
+\n(fn (PATTERN LIST) BODY...)"
(declare (indent 1) (debug ((pcase-PAT form) body)))
(if (pcase--trivial-upat-p (car spec))
`(dolist ,spec ,@body)