help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop all edebug?


From: Michael Heerdegen
Subject: Re: How to stop all edebug?
Date: Thu, 24 Oct 2019 13:05:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

HaiJun Zhang <netjune@outlook.com> writes:

> 在 2019年10月23日 +0800 PM2:47,Michael Heerdegen
> <michael_heerdegen@web.de>,写道:
>  If you don't use the master branch, this is the code that does
> what you want:
>
> (dolist (function (edebug--edebug-on-entry-functions))
> (put function 'edebug-on-entry nil))
>
> I eval the form. Emacs(26.3 on macOS) shows error like this:

Correct - my mistake.  The missing function had been added in the same
commit some days ago.  Here it is the complete code:

#+begin_src emacs-lisp
(defun edebug--edebug-on-entry-functions ()
  (let ((functions nil))
    (mapatoms
     (lambda (symbol)
       (when (and (fboundp symbol)
                  (get symbol 'edebug-on-entry))
         (push symbol functions)))
     obarray)
    functions))

(dolist (function (edebug--edebug-on-entry-functions))
  (put function 'edebug-on-entry nil))
#+end_src

That should work now.


Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]