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#66706: [PATCH] Automatic elisp dialect insertion Date: Wed, 25 Oct 2023 20:51:44 -0400 Message-ID: References: <17C83052-7946-45DE-B660-DA7EB82001B0@gmail.com> <83sf61mb54.fsf@gnu.org> <98CD592C-0E82-4795-8168-2B5E597FF7A7@gmail.com> <8334xzlvy9.fsf@gnu.org> <87pm131pq6.fsf@yahoo.com> <83o7gmkiyn.fsf@gnu.org> <438d1186-3759-4462-06d8-b41c69134eda@gutov.dev> <878r7q25zh.fsf@yahoo.com> 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="5893"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66706@debbugs.gnu.org, mattias.engdegard@gmail.com, Po Lu , Dmitry Gutov , stefankangas@gmail.com, Eli Zaretskii To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 26 02:52:48 2023 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 1qvocA-0001J9-So for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Oct 2023 02:52:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvobw-00078g-Qg; Wed, 25 Oct 2023 20:52:32 -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 1qvobv-00073l-Vw for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 20:52:32 -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 1qvobv-0002NM-MS for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 20:52:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvocP-0004Fg-Mh for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 20:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2023 00:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66706-submit@debbugs.gnu.org id=B66706.169828154616299 (code B ref 66706); Thu, 26 Oct 2023 00:53:01 +0000 Original-Received: (at 66706) by debbugs.gnu.org; 26 Oct 2023 00:52:26 +0000 Original-Received: from localhost ([127.0.0.1]:60297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvobq-0004Eo-8v for submit@debbugs.gnu.org; Wed, 25 Oct 2023 20:52:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvobn-0004Ea-8s for 66706@debbugs.gnu.org; Wed, 25 Oct 2023 20:52:24 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 57FD6100126; Wed, 25 Oct 2023 20:51:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1698281506; bh=xU5kY063E61b500eNTvh6k/wPwvhFPABI1t0g2cY/yE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Xn0r0Nmik/yVS0HnOZ87APfywWPbhMEnbU1fCVcxzp7ZaxOgbQp+saKCO9HSe4BQ1 bNfe4h2pVth/PoQ0NG6EY9VNnyKEbSZWGcjAaccIlYV568elSPRPxWOEWGY6rxpbx6 8wG01Ok87e9lDmNiWOh28aPMxgfha7Fjn87s3AJvNbeO+EMvzWVlxQwzSCkACPoAlZ jIVQC2VbShNypRXn3nYj+n3xJffTvZRfNlr2rumkP9TAPjlu14DehPHkTKLdc5ndam EGgifbC/kvAUMxiXFlARAsJVHHwPbB8aWa/Wr+8Kq6DXV5JeCccfPWc+RFlsQCV3oW mylpeXCEdDaSg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B7E70100033; Wed, 25 Oct 2023 20:51:46 -0400 (EDT) Original-Received: from pastel (unknown [45.72.216.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 61F2F120432; Wed, 25 Oct 2023 20:51:46 -0400 (EDT) In-Reply-To: (Jim Porter's message of "Wed, 25 Oct 2023 17:07:00 -0700") 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:273228 Archived-At: > In particular, what's missing from the following paragraph[1]? > >> Another way to think about let is that it is like a setq that is temporary >> and local. The values set by let are automatically undone when the let is >> finished. The setting only affects expressions that are inside the bounds >> of the let expression. In computer science jargon, we would say the >> binding of a symbol is visible only in functions called in the let form; >> in Emacs Lisp, the default scoping is dynamic, not lexical. (The >> non-default lexical binding is not discussed in this manual.) Nothing is "missing" but the above describes dynamic binding, static binding has a different behavior which is not like "a setq at the beginning which is undone at the end". So this paragraph needs to be fully rewritten. Stefan