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#69749: (bindat-type sint 32 t) -> unbound variable bitlen Date: Wed, 13 Mar 2024 08:54:53 -0400 Message-ID: References: <82a56165-7684-4f10-a6c4-60ff27de0417@risk-engineering.org> <86cyrytkk7.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10554"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69749@debbugs.gnu.org, Eric Marsden To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 13 13:55:55 2024 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 1rkO9B-0002QS-H4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Mar 2024 13:55:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkO8s-000312-At; Wed, 13 Mar 2024 08:55:34 -0400 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 1rkO8l-0002xH-Cp for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2024 08:55:28 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rkO8l-0003LF-44 for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2024 08:55:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rkO9K-0008O8-47 for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2024 08:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Mar 2024 12:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69749 X-GNU-PR-Package: emacs Original-Received: via spool by 69749-submit@debbugs.gnu.org id=B69749.171033455132214 (code B ref 69749); Wed, 13 Mar 2024 12:56:02 +0000 Original-Received: (at 69749) by debbugs.gnu.org; 13 Mar 2024 12:55:51 +0000 Original-Received: from localhost ([127.0.0.1]:45006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkO99-0008NW-BH for submit@debbugs.gnu.org; Wed, 13 Mar 2024 08:55:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkO8u-0008Ms-SW for 69749@debbugs.gnu.org; Wed, 13 Mar 2024 08:55:50 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 15BBD100249; Wed, 13 Mar 2024 08:54:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1710334495; bh=0GLwSaskR3AupIR/7yQX3fQiQ+bGOJaeg7yQ8Bhg9SA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fFxe6sMO4GUSS5f/6d93nnSyVOtYa51Qy9DsxL8etW6ub5QqpbKI7+WZZJtvBpsD1 Y7TyktsfRgvrWdAgzWrzc/utxZQR51GaxwEK1QgQ/wu2yXtCYrJGG911XxNZgKf8si azYvS5x/plz8IxXE8HarMCX6F+uHLEM49u1u+NbEg4APIEUoHxFgAoxLU/9SNSe5+h bnyarUWtlRujT/a5+0kIqVjPnFMCi/5HzDHWkDKVEfb7ir/OkyqH0SGnDmZy0KNH8R 5/isWXAlanp2mdhpb+793qgaSktbUUN21xGdME27UrzcPU0BOPFdhMxEHjdxVmyNaF zKZVQMM8u/JAA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 332FB1000DD; Wed, 13 Mar 2024 08:54:55 -0400 (EDT) Original-Received: from pastel (unknown [216.154.27.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0D7911206A7; Wed, 13 Mar 2024 08:54:55 -0400 (EDT) In-Reply-To: <86cyrytkk7.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 13 Mar 2024 13:53:12 +0200") 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:281548 Archived-At: >> -- file bd.el >> (require 'bindat) >> (bindat-pack (bindat-type sint 32 t) 42) >> --=20 When you open this file in Emacs=E2=89=A528, the modeline will have an oran= ge "/d" which is meant to warn you that something's amiss. Click on it, and your problem will be solved :-) >> Symbol=E2=80=99s value as variable is void: bitlen >> >> This bug is difficult to understand. Run from an IELM buffer, this code= =20 >> works as expected. The macroexpansion of the bindat-type declaration=20 >> includes a binding for bitlen. Your code ends up (via the `sint` of `bindat-type`) relying on the `lexical-binding` dialect of ELisp, which is enabled by default in `ielm` but not in your file. Stefan