]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.
authorMark Oteiza <mvoteiza@udel.edu>
Fri, 4 Nov 2016 14:23:46 +0000 (10:23 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Fri, 4 Nov 2016 14:23:46 +0000 (10:23 -0400)
lisp/emacs-lisp/pcase.el

index 0b8dddfacc91d723e993a9bf14ade88d0111443d..896ad925928f5b63da67e6959854db9ffb948047 100644 (file)
@@ -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)