From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name begins with _ Date: Tue, 15 Nov 2022 15:08:33 +0200 Message-ID: <83mt8sicvi.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30329"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 59213@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 14:09:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ouvh2-0007dm-WF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 14:09:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouvgo-0001H7-Hg; Tue, 15 Nov 2022 08:09:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouvgW-0001Dt-4s for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:09:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouvgU-0006je-Gl for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouvgU-0001rn-6V for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Nov 2022 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59213 X-GNU-PR-Package: emacs Original-Received: via spool by 59213-submit@debbugs.gnu.org id=B59213.16685177187141 (code B ref 59213); Tue, 15 Nov 2022 13:09:02 +0000 Original-Received: (at 59213) by debbugs.gnu.org; 15 Nov 2022 13:08:38 +0000 Original-Received: from localhost ([127.0.0.1]:53352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouvg4-0001r5-V5 for submit@debbugs.gnu.org; Tue, 15 Nov 2022 08:08:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouvfv-0001qk-8T for 59213@debbugs.gnu.org; Tue, 15 Nov 2022 08:08:35 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouvfp-0006fQ-K2; Tue, 15 Nov 2022 08:08:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4yTNkN3FK5PxkE39mb4WtO1/aQprM6xTPKXYJT6hAsk=; b=I1utlMTXjlII GUchlrtuAWcEzdyJO+/B35qPin0VpYAb63b9eqVjAx1XC82oaSuvCsDzf09TcZIQa4XKRcMBwNgpU UF+NTymBR8pS3dHDfeeCx2iZxixBVkyQT0oA13gSVOcmHEgam00nYkVQvZRJ3hSdARpDpNBgqmGsH Wr3ARrnwUC4XvFLsy+6TkQ4qpIOjrg/JgMxA4G3Oy/akW+RyPbXKu9oJbuojGA/ErBvAtPOWgqCR3 8ehr7h/SSGWqpQPGOaidP2ijLZODjgFx36gISt5qg0SSGYGEH/ZBysdRttx15ya4EP/S1iSy2OKSv stlF1dLKFSmiST/wh4uZKw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouvfo-0007yU-Rz; Tue, 15 Nov 2022 08:08:21 -0500 In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247935 Archived-At: > Cc: 59213@debbugs.gnu.org > Date: Sun, 13 Nov 2022 22:53:12 -0500 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > 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. > > The behavior depends on where you are in the *Backtrace* buffer, because > each line in the backtrace can be in a different lexical scope. > So please clarify on which line you were when you did the above. > > > 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. > > Could be. Or could be that you were trying to use `_old-len` in > a lexical context where there is no such variable. Could you please document this in the "Edebug Eval" node of the ELisp reference manual? I don't think the text there has any hints about this subtle aspect. It should also be mentioned in "Backtraces" and in "Debugger Commands" (the latter says something vague about this, but it's too vague, IMO). TIA