Function: edebug-cancel-on-entry

edebug-cancel-on-entry is an interactive and byte-compiled function defined in edebug.el.gz.

Signature

(edebug-cancel-on-entry FUNCTION)

Documentation

Cause Edebug to not stop when FUNCTION is called.

The removes the effect of edebug-on-entry. If FUNCTION is nil, remove edebug-on-entry on all functions.

Key Bindings

Aliases

edebug-cancel-edebug-on-entry (obsolete since 28.1) cancel-edebug-on-entry (obsolete since 28.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/edebug.el.gz
(defun edebug-cancel-on-entry (function)
  "Cause Edebug to not stop when FUNCTION is called.
The removes the effect of `edebug-on-entry'.  If FUNCTION is
nil, remove `edebug-on-entry' on all functions."
  (interactive
   (list (let ((name (completing-read
                      (format-prompt "Cancel edebug on entry to"
                                     "all functions")
                      (let ((functions (edebug--edebug-on-entry-functions)))
                        (unless functions
                          (user-error "No functions have `edebug-on-entry'"))
                        functions))))
           (when (and name
                      (not (equal name "")))
             (intern name)))))
  (unless function
    (message "Removing `edebug-on-entry' from all functions."))
  (dolist (function (if function
                        (list function)
                      (edebug--edebug-on-entry-functions)))
    (put function 'edebug-on-entry nil)))