From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#70137: 30.0.50; pp-macroexpand-last-sexp buffers should turn lexical binding on Date: Tue, 02 Apr 2024 08:01:18 +0200 Message-ID: <87v8504829.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34916"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 70137@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 02 08:02:38 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 1rrXEE-0008wG-EN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Apr 2024 08:02:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrXDc-0005Yq-Qm; Tue, 02 Apr 2024 02:02:00 -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 1rrXDb-0005Ya-9F for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:01:59 -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 1rrXDb-0004I5-1C for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:01:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrXDe-0005Ay-HQ for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Apr 2024 06:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70137 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171203769719792 (code B ref -1); Tue, 02 Apr 2024 06:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2024 06:01:37 +0000 Original-Received: from localhost ([127.0.0.1]:52102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrXDF-000598-0R for submit@debbugs.gnu.org; Tue, 02 Apr 2024 02:01:37 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:57478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrXDD-00058U-0T for submit@debbugs.gnu.org; Tue, 02 Apr 2024 02:01:35 -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 1rrXD2-0005UU-2E for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:01:24 -0400 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrXD0-0004Aj-Fx for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 02:01:23 -0400 Original-Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a4e60a64abcso257508266b.1 for ; Mon, 01 Apr 2024 23:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712037680; x=1712642480; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=JZhVeknb3IQkz+ukJ+rOnLbX7Rx0EpcIiJ0acleOtFI=; b=jNMpMXqWsATHl9UdYgADuQEDMvjkbKXZvZ8pwR1OEYxSpaj9XrcV0SvFOUGH5Y+skW t76/ofMLhdAE/va2cgdw3QK5pqVIggNa46VnpesGQexfMnmohgig/lYD684n+Mh1Jlah QBn7n4SrTCuIlLr1tDXXZnDchY6RrZFGoeLDDQ1ay7daDqK5q7q8Bp0TTx+gIB3Rfozv 8mkIGwKjdqSwuO9RvHBYppjSffX9IjctxBNuTPf3zPB7L1ZLWm3lg2q/MD0uahsepN7Z Hy988W3JipSQ4/6By8xvHehrllf6+GUTMaEC4MA73aqa7pfaQDQW0KStb4TxGdncSTcR eCrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712037680; x=1712642480; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JZhVeknb3IQkz+ukJ+rOnLbX7Rx0EpcIiJ0acleOtFI=; b=LPvQIeU1uAnSwIn+/Y5gw8A2ngV+BVyUl50knZa/DGy1kzoU4yesqdsD/IVYAMxE3A tWwNzyvCc0fVQBwi0FWKhVeklOdCP7LkCHlpHD3fYROfcbih9cx3rXFjGK7+8ervJPPA XjzTHK7K41BWFRKDdiLIuvhPOIpPXMZAGHRFdYFUP4H/DcHDVlj/bbKoWqT/+8P41X8c c7dGc6XPnhiom7zKglYogBw08NiMRZ06h0ihB7JIJbyy9FF0X95cuzS3K74oyvsFNYM5 4IwVLw64yqLJskR+D7MZtWBhNWCpf6acOc8qH+9jaGkuKXe7c9ApFV5MBuj0A7OMlq1B XsDQ== X-Gm-Message-State: AOJu0YzavdWJZDhQjvb/MaknOub/emwDqq7j2rZPTClfRAoBYUtIKTNG +g39ysTDiju9yAi0QtT5bAVF4N71BhgaPkAiD4IH4yJMwjFiTvjJXKI/6ih3 X-Google-Smtp-Source: AGHT+IGfFFXptOoWqqymIR+vDl9341Tcotxcpu2e1uM2KK7zI2500QkE27SjGy8PoSElf22A8JWLAQ== X-Received: by 2002:a17:907:7b9e:b0:a4e:512a:903c with SMTP id ne30-20020a1709077b9e00b00a4e512a903cmr7459272ejc.32.1712037680239; Mon, 01 Apr 2024 23:01:20 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8a87:ff00::c15c]) by smtp.gmail.com with ESMTPSA id xc1-20020a170907074100b00a4e5a784843sm2937513ejb.168.2024.04.01.23.01.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 23:01:19 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:282496 Archived-At: If you call pp-macroexpand-last-sexp in a buffer with lexical binding, the resulting *Pp Macroexpand Output* buffer has lexical binding turned off. The problem with this is that if you now go the *Pp Macroexpand Output* buffer and call pp-macroexpand-last-sexp again, this second macro expansion step may not reflect what would happen in the original buffer; I don't recall an example, but some macros expand differently in the two variable scoping modes.