From: Lars Ingebrigtsen Date: Fri, 1 Nov 2019 16:42:22 +0000 (+0100) Subject: Really enable setting a breakpoint without instrumenting first X-Git-Tag: emacs-27.0.90~784 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0714d6664cd2e836d425d00951bbe599af553952;p=emacs.git Really enable setting a breakpoint without instrumenting first * lisp/emacs-lisp/edebug.el (edebug-set-breakpoint): Really enable setting a breakpoint without instrumenting first (bug#23469). --- diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 237d93922ff..d81052318cb 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -3276,7 +3276,9 @@ 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))) + (let ((data (get (edebug--form-data-name + (edebug-get-form-data-entry (point))) + 'edebug))) (or (null data) (markerp data)))) (edebug-defun)) (edebug-modify-breakpoint t nil arg))