[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47516: 28.0.50; void-variable edebug-all-defs
From: |
Michael Heerdegen |
Subject: |
bug#47516: 28.0.50; void-variable edebug-all-defs |
Date: |
Thu, 01 Apr 2021 02:03:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan,
You removed that autoload cookie in bae2cfe63c:
| * lisp/emacs-lisp/edebug.el (eval-defun): Simplify
|
| (edebug-all-defs, edebug-all-forms): Don't autoload since the problem
| it was working around has been fixed a while back.
Seems that was hasty - or not the only problem these autoload cured?
Philipp Stephani <p.stephani2@gmail.com> writes:
> > For decades I'm used to debug Lisp functions by calling `edebug-defun'.
> > To get rid of the debugging instrumentation I'm using `eval-buffer'. In
> > the not so distant past Emacs started to complain about this habit as
> > follows:
> >
> > Debugger entered--Lisp error: (void-variable edebug-all-defs)
> > edebug-read-and-maybe-wrap-form1()
> > edebug-read-and-maybe-wrap-form()
> > edebug--read(read #<buffer window.el>)
> > apply(edebug--read read #<buffer window.el>)
> > #f(advice-wrapper :around read edebug--read)(#<buffer window.el>)
> > eval-buffer() ; Reading at buffer position 990
> > funcall-interactively(eval-buffer)
> > call-interactively(eval-buffer nil nil)
> > command-execute(eval-buffer)
> >
> > I neither understand the error message nor why I should not be allowed
> > to evaluate the buffer in this situation.
> >
>
> Not sure whether it's related, but there's a comment in edebug.el:
>
> ;; edebug-all-defs and edebug-all-forms need to be autoloaded
> ;; because the byte compiler binds them; as a result, if edebug
> ;; is first loaded for a require in a compilation, they will be left
> unbound.
>
> But despite this explanation these two variables aren't autoloaded.
TIA,
Michael.