Function: helpful--edebug-p
helpful--edebug-p is a byte-compiled function defined in helpful.el.
Signature
(helpful--edebug-p SYM)
Documentation
Does function SYM have its definition patched by edebug?
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--edebug-p (sym)
"Does function SYM have its definition patched by edebug?"
(let ((fn-def (indirect-function sym)))
;; Edebug replaces function source code with a sexp that has
;; `edebug-enter', `edebug-after' etc interleaved. This means the
;; function is interpreted, so `indirect-function' returns a list.
(when (and (consp fn-def) (consp (cdr fn-def)))
(-let [fn-end (-last-item fn-def)]
(and (consp fn-end)
(eq (car fn-end) 'edebug-enter))))))