summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-macs.el
diff options
context:
space:
mode:
authorJohan Bockgård <bojohan@gnu.org>2015-04-12 16:26:52 +0200
committerJohan Bockgård <bojohan@gnu.org>2015-04-12 16:26:52 +0200
commit2e47de365b4dcec6781f6150cea977fa8d8a94f2 (patch)
treeb73c7ee6216e1059bfe138ce06157a06857e67db /lisp/emacs-lisp/cl-macs.el
parent66a53da5f0c15a1e69675e8157fbbc00a364bb80 (diff)
downloademacs-2e47de365b4dcec6781f6150cea977fa8d8a94f2.tar.gz
Support debug declarations in pcase macros
* lisp/emacs-lisp/pcase.el (pcase-MACRO): New edebug spec. (pcase-UPAT): Use it. Remove "`". (pcase--edebug-match-macro): New function. (pcase-defmacro): Support debug declarations. * lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>: * lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>: * lisp/emacs-lisp/pcase.el (\`): <pcase-defmacro>: Add debug declaration.
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
-rw-r--r--lisp/emacs-lisp/cl-macs.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 69f2792f4bd..41435b8b7b1 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2780,6 +2780,7 @@ non-nil value, that slot cannot be set via `setf'.
Elements of FIELDS can be of the form (NAME UPAT) in which case the contents of
field NAME is matched against UPAT, or they can be of the form NAME which
is a shorthand for (NAME NAME)."
+ (declare (debug (sexp &rest [&or (sexp pcase-UPAT) sexp])))
`(and (pred (pcase--flip cl-typep ',type))
,@(mapcar
(lambda (field)