Function: def-edebug-elem-spec
def-edebug-elem-spec is a byte-compiled function defined in
subr.el.gz.
Signature
(def-edebug-elem-spec NAME SPEC)
Documentation
Define a new Edebug spec element NAME as shorthand for SPEC.
The SPEC has to be a list.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun def-edebug-elem-spec (name spec)
"Define a new Edebug spec element NAME as shorthand for SPEC.
The SPEC has to be a list."
(declare (indent 1))
(when (string-match "\\`[&:]" (symbol-name name))
;; & and : have special meaning in spec element names.
(error "Edebug spec name cannot start with '&' or ':'"))
(unless (consp spec)
(error "Edebug spec has to be a list: %S" spec))
(put name 'edebug-elem-spec spec))