From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name begins with _ Date: Mon, 14 Nov 2022 03:48:45 +0100 Message-ID: <87h6z2tfn6.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11491"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , 59213@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 02:39:42 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 1oukvO-0002ji-81 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 02:39:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouion-0000pt-LC; Mon, 14 Nov 2022 18:24:45 -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 1ouifw-0001X6-1S for bug-gnu-emacs@gnu.org; Mon, 14 Nov 2022 18:15:41 -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 1ouPXu-0003C3-NR for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2022 21:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouPXu-0002Il-4h for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2022 21:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Nov 2022 02:50: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.16683941468778 (code B ref 59213); Mon, 14 Nov 2022 02:50:02 +0000 Original-Received: (at 59213) by debbugs.gnu.org; 14 Nov 2022 02:49:06 +0000 Original-Received: from localhost ([127.0.0.1]:48737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouPWy-0002HU-Ld for submit@debbugs.gnu.org; Sun, 13 Nov 2022 21:49:06 -0500 Original-Received: from mout.web.de ([212.227.17.11]:59853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouPWs-0002Gv-E7 for 59213@debbugs.gnu.org; Sun, 13 Nov 2022 21:49:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1668394126; bh=Tkycd0qUa4Yeu48X0+pqgbMa+qTEIcUU/D0OhwbOz8Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Hu/SStRYG0+P6/NBQ0QSvnS+/xEGhUirF+cXO7PcfBcNlJLu94sVSG6+NiNTL+F/G v2zlgQS0MDCdwS+D+3zPtAFdWvqkSSJqhN+lozn6bpvvCezkB8YZU7E9QXAXfIoKPL hyjNVgJ6h6T3ZH8WXTa/NXTmptePbR8iMlwwXM54qmMS40JC6m3/i+bQClvsX3Vp6G hBfrx39RknbYyMQoYAKj3IOWtlXOnRDQpldO9kHDgWbyFEwGElN7oEo63KVmF13CKj Hexp1uZrwxh7JTE135XQuan3T5Y0YUKfv+Tma/8tB/HjiHi6fRyCvm1n1UZWRWJmWU y2s6FWucMvMfQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([88.66.71.129]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MLAVc-1odQuC2G4Q-00IN55; Mon, 14 Nov 2022 03:48:46 +0100 In-Reply-To: (Alan Mackenzie's message of "Sat, 12 Nov 2022 09:35:58 +0000") X-Provags-ID: V03:K1:S++hxiCtFKrSgVaKjzp3xy2v9Ar0tF0C5jlTLcXTNmz9AuQ4lcU 7Dq93aOmNhtLd5Qrg4sbvXyPYL7xnJknHCRWVLuyIcnMlvEZYDRLSyL7Q25k0xz3/wYolc9 Xhv/s3QAMox/Nr5DSXwSfwnUfbA455Nx118YdwnUqeG0BUdEw4eXgr/TbMRKVfwwuZY84d6 9PcxDezp8B+sRx5OaVDCQ== UI-OutboundReport: notjunk:1;M01:P0:zWPOT1EgiR4=;hOMhJLTXgGoZb9PtyACVbE7i/gD bcoKxjo9OmrjEYzPArn27HrG9CVv/qhNClBbQHAzUKN2Had13KDjAKTjE46tHhLw/aMepernv SkLVzslBoExN4oefg0mH0NcEYlPpviu8SgM99xD9kVV2UQxrYxwuNbkMte9XsnYyuEY756t+X 2y7dZmj8OwRpD5Qpn3/yMoCI4htSR2ZZ6hehqf1AY1gkA43eLedu16iuJsSypqVfOuzoZz0QU /yaQVLLlzJM3y01F8oB4z++NKPS5awbM31OwB8gBxULjBBfaA5NwGFxOobkAiWDWob6ZumgvD J2jqyLu+FqwT41lV921TVzNuPIA5XV0h+u5i4uE7l11SVKAKJxrNtFoHq1k/aTVTNqDlNTq3z C+UTkRP7jW3bE/PH2O1aHuxyakjMeSJXBmA1iGTO8TMnEFNT3y4HJHenxg2ogb+WSxB0ZSD9r oW6rGMJbZ6bukkIkvHn6UtFU2wMSbnLZ4C7CkZTa6YaOzS18jN/6biWnxAIx6qAP99jAsuCHL wVayxV3tFdnMXCVkf6zBsC223x9Ardto160EX0cGN7caRaBGRwobLX5Ud802Uy/4y2RpwKF1t KjrAuHbaXNZ2ZrajM8Y47UayBVA7ZNIajat5htE3Rel5OOuQZSrS3xG9+2d2ndlnAfOYP0Wjb k/aPGPmZMzpNkJg1eOOeq5of35XEPp0OdWhdN9T+mJFJ7qxfEupikAceNuQvWCA2zZhVpRWS1 rLkWrTdszRWaFBIu1AeL2LDwG0wIHhq2e4/az8OIwm/WR7kz1L9VuN9J/MnCeXqRxf2aB5yG 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:247898 Archived-At: Alan Mackenzie writes: > 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 Here is a test case: (defun test (a b _c) (+ a b)) Instrument, etc., and e _c RET gives you the void variable error. I don't think this behavior is intended. When I change (defun edebug-eval (expr) (backtrace-eval expr 0 'edebug-after)) to (defun edebug-eval (expr) (backtrace-eval expr 1 'edebug-after)) ;; ^ a binding of _c is being printed. Let's CC Stefan who is the real expert and ask whether this change would make sense. I'm not sure when and in which frames a binding is or should be visible. Note: when _c is used in the function body a binding _is_ visible also in the 0th frame. Michael.