From: Johan Bockgård Date: Sun, 12 Apr 2015 14:26:51 +0000 (+0200) Subject: pcase.el: Edebug support for `app' and vector patterns X-Git-Tag: emacs-25.0.90~2465 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=66a53da5f0c15a1e69675e8157fbbc00a364bb80;p=emacs.git pcase.el: Edebug support for `app' and vector patterns * lisp/emacs-lisp/pcase.el (pcase-FUN): New edebug spec. (pcase-UPAT): Use it. Support `app' patterns. (pcase-QPAT): Support vector patterns. --- diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el index 3a2fa4fdc81..bbb278c863e 100644 --- a/lisp/emacs-lisp/pcase.el +++ b/lisp/emacs-lisp/pcase.el @@ -78,17 +78,22 @@ ("`" pcase-QPAT) ("guard" form) ("let" pcase-UPAT form) - ("pred" - &or lambda-expr - ;; Punt on macros/special forms. - (functionp &rest form) - sexp) + ("pred" pcase-FUN) + ("app" pcase-FUN pcase-UPAT) sexp)) (def-edebug-spec pcase-QPAT (&or ("," pcase-UPAT) (pcase-QPAT . pcase-QPAT) + (vector &rest pcase-QPAT) + sexp)) + +(def-edebug-spec + pcase-FUN + (&or lambda-expr + ;; Punt on macros/special forms. + (functionp &rest form) sexp)) ;;;###autoload