[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master abe594c: * lisp/emacs-lisp/pcase.el (pcase-dolist):
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master abe594c: * lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring. |
Date: |
Fri, 4 Nov 2016 14:24:27 +0000 (UTC) |
branch: master
commit abe594c0990a4e6bc72b20b7ff06b4b0c01a682c
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>
* lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.
---
lisp/emacs-lisp/pcase.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index 0b8dddf..896ad92 100644
--- 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master abe594c: * lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.,
Mark Oteiza <=