[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name b
From: |
Alan Mackenzie |
Subject: |
bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name begins with _ |
Date: |
Sat, 12 Nov 2022 09:35:58 +0000 |
Hello, Emacs.
In Emacs 29 (not started with -Q, but...),
I instrumented for edebug a function which looked like:
(defun c-trim-found-types (beg end _old-len) ....)
, the compilation being with lexical-binding: t.
During the edebug session, I attempted
e _old-len RET.
Instead of giving me the value of _old-len (which was 3) it gave the
error message
Error: Symbol's value as variable is void: _old-len
.. This is a bug.
Just because a function doesn't use a particular argument (here
_old-len) doesn't mean the person debugging it isn't interested in its
value. In this particular case, it was extremely interesting, because
beg and end were unequal, and _old-len was 3.
In the end, I found out the info with the d command (backtrace), but I
shouldn't have to.
--
Alan Mackenzie (Nuremberg, Germany).
- bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name begins with _,
Alan Mackenzie <=