1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-24 00:40:35 -08:00

* lisp/emacs-lisp/pcase.el (pcase-dolist): Autoload as well.

This commit is contained in:
Stefan Monnier 2015-04-13 14:46:58 -04:00
parent 8bab07bc03
commit 4aca2fdfda

View file

@ -263,6 +263,7 @@ of the form (UPAT EXP)."
(push (list (car binding) tmpvar) matches)))))
`(let ,(nreverse bindings) (pcase-let* ,matches ,@body)))))
;;;###autoload
(defmacro pcase-dolist (spec &rest body)
(declare (indent 1) (debug ((pcase-UPAT form) body)))
(if (pcase--trivial-upat-p (car spec))