mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Instrument function if it hasn't been already in edebug-set-breakpoint
* lisp/emacs-lisp/edebug.el (edebug-set-breakpoint): Instrument form automatically when using this function (bug#23469).
This commit is contained in:
parent
4503af6c9e
commit
0794354b24
1 changed files with 5 additions and 0 deletions
|
|
@ -3216,6 +3216,11 @@ the breakpoint."
|
|||
"Set the breakpoint of nearest sexp.
|
||||
With prefix argument, make it a temporary breakpoint."
|
||||
(interactive "P")
|
||||
;; If the form hasn't been instrumented yet, do it now.
|
||||
(when (and (not edebug-active)
|
||||
(let ((data (get (edebug-form-data-symbol) 'edebug)))
|
||||
(or (null data) (markerp data))))
|
||||
(edebug-defun))
|
||||
(edebug-modify-breakpoint t nil arg))
|
||||
|
||||
(defun edebug-unset-breakpoint ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue