From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#66706: [PATCH] Automatic elisp dialect insertion Date: Wed, 25 Oct 2023 17:07:00 -0700 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, Eli Zaretskii , mattias.engdegard@gmail.com, 66706@debbugs.gnu.org, Stefan Monnier To: Po Lu , Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 26 02:07:51 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 1qvnuh-0007lr-B8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Oct 2023 02:07:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvnuP-0004uJ-Om; Wed, 25 Oct 2023 20:07:33 -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 1qvnuO-0004tU-2J for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 20:07: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 1qvnuN-0002QI-Ql for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 20:07:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvnus-00032S-6w for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 20:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2023 00:08:02 +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.169827886211651 (code B ref 66706); Thu, 26 Oct 2023 00:08:02 +0000 Original-Received: (at 66706) by debbugs.gnu.org; 26 Oct 2023 00:07:42 +0000 Original-Received: from localhost ([127.0.0.1]:60250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvnuY-00031q-Fn for submit@debbugs.gnu.org; Wed, 25 Oct 2023 20:07:42 -0400 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:50257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvnuV-00031b-Aq for 66706@debbugs.gnu.org; Wed, 25 Oct 2023 20:07:40 -0400 Original-Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6b201a93c9cso292788b3a.0 for <66706@debbugs.gnu.org>; Wed, 25 Oct 2023 17:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698278823; x=1698883623; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=xRiXwRYwSzy141x7Q3R4KpqfpfPvl5LLdUdLXl3YBrY=; b=U2Ly2F1z2J7cZfrud2VxxkwHYVm/wCUJIK+oNN3eenTKC2IgV9GwAuF4TmmxMd1QdV peP2rvgHnmZpIINGNP44FtcErfXm+n/mtyOeEnxpIUAZ30+4sVUC673FyhZtj7rq/BhM RPhRdLj9WCXM3ab3y0Rv6LftZkiVHwToyk/zS5/K7jBwOowXu6E5hIJ3+NsxF6gppxFy aZChqJjNZqaoWWZCT9QdXTgz6Tyb3T6wdckCdwu+5m65uCg6b51vmL0+7ZbQt9ngIDXD ob92viyCk4kGw6yg8mYAhCGqQmuf8CR+z9eUB+z2GoMoWiFoDrazT7hhEnwPtjtDEdwM a6ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698278823; x=1698883623; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xRiXwRYwSzy141x7Q3R4KpqfpfPvl5LLdUdLXl3YBrY=; b=MchRhC7QqgJyr3/6x8UsbbqQe7I6gQ4YWpdCT1i4hWmnEAejAh/sVdyjtysLq9+3Ed T2F8naK3YNdia2LzGg0jBsqJ1+36jPsR9FvvsRXcpQotM+Qpd1Us8+8e4xmiWFXM3u2a MYt1KQDC4rl4OLUIOhiFPzRxjf3k5XlqhWjXkKiX66zFvGDrPqxDa1+4QWgHEyOsFewl 2X4Vd0tPfMe3NoS5IE+lbDkFR2ejVSa9dJZnwvttyJ6Dbfd/mSuo6Ia9819sqmtIGFIR lrGA/y6+eyVR4TR51HlHsfpRmzXOmwtHr5aDOXZvp7U6v/AUI6C9qOf1gKgKduYrtq+t tQVw== X-Gm-Message-State: AOJu0YygS7GDlNyOW4EMT+j6MVm32bHYXvTtEzX8Ir1esgZ5H2ep0GqU 853VQsVy8H2lY3tITsfJRDw= X-Google-Smtp-Source: AGHT+IFdk4U6g5nMtHZJd52y0PItPGIq0qHvZwrdS2IVHaxhhV6xY6lyTtJHE+b3VGetMLexEa1xQA== X-Received: by 2002:a05:6a21:4841:b0:16b:74bb:e57e with SMTP id au1-20020a056a21484100b0016b74bbe57emr7025945pzc.12.1698278822617; Wed, 25 Oct 2023 17:07:02 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id ix21-20020a170902f81500b001c0a414695dsm9759430plb.62.2023.10.25.17.07.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 17:07:01 -0700 (PDT) Content-Language: en-US In-Reply-To: <878r7q25zh.fsf@yahoo.com> 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:273223 Archived-At: On 10/25/2023 6:20 AM, Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > We cannot make lexical binding the default until an adequately > proficient writer is found to explain it within the Emacs Lisp > introduction. Any volunteers? For doing so would certainly be more > conducive towards that goal. If we can get some high-level agreement on things that this explanation should include (I'm not sure how much detail we want to go into in the ELisp Intro), I could take a stab at it. 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.) [1] https://www.gnu.org/software/emacs/manual/html_node/eintr/Prevent-confusion.html