From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59213: Emacs 29: Edebug fails to instrument a parameter whose name begins with _ Date: Sun, 13 Nov 2022 22:53:12 -0500 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 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 01:39:10 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 1oujym-0000cv-Ge for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 01:39:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouiop-0000rJ-3O; Mon, 14 Nov 2022 18:24:47 -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-0004Q9-4k 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 1ouQXq-0006Gd-0u for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2022 22:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouQXp-0003uq-TH for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2022 22:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Nov 2022 03:54:01 +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.166839800315007 (code B ref 59213); Mon, 14 Nov 2022 03:54:01 +0000 Original-Received: (at 59213) by debbugs.gnu.org; 14 Nov 2022 03:53:23 +0000 Original-Received: from localhost ([127.0.0.1]:48782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouQXD-0003tz-8A for submit@debbugs.gnu.org; Sun, 13 Nov 2022 22:53:23 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouQXC-0003tj-Dk for 59213@debbugs.gnu.org; Sun, 13 Nov 2022 22:53:22 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6E381805E3; Sun, 13 Nov 2022 22:53:16 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CE00480401; Sun, 13 Nov 2022 22:53:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668397994; bh=MkbJB4+qt3m+YOXOjRBqXWaR8ayvUf5p1yNqSgC15xA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Yax0PVntwBokxN5J3CRjWilMYGHLBQvP4iOzkWM0Tmz9zZA35l2Oj1TSY6S+exY0Y 2HwfwNMpNRhfKrSnV+NwGEJNHcGpq5ZeK181cZ2DsY0FqQpD/uvou1mhNuE3KS+lLV 3QN8NB5exGnSCvecnQUz4gwCYSxQi55FUvTaULlJ9s4TA6ATa0+RoTZVl6himtMcXA eNBrsQe3fbqXig3p8eGsDEtbyuAIvJBUpLUX+J0RfEyBQ6u2Xgj+R83Le/jmHcMT4K 2MmNKC1TciV59zKihH940Xpk2DUsgpHgQ4Sl7pHSOzvMRM4UeX2HVkkvR9OljZUXn3 gsvaznMiGS5Bw== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9C80E120DCC; Sun, 13 Nov 2022 22:53:14 -0500 (EST) In-Reply-To: (Alan Mackenzie's message of "Sat, 12 Nov 2022 09:35:58 +0000") 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:247869 Archived-At: > 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. > Just because a function doesn't use a particular argument (here I think the leading underscore is purely incidental and you'd get the same behavior with `beg` and `end`. Stefan