From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#74145: 31.0.50; Default lexical-binding to t Date: Sat, 28 Dec 2024 18:40:00 +0100 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38423"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andrea Corallo , 74145@debbugs.gnu.org, Stefan Kangas To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 28 18:42:20 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 1tRapP-0009oi-QA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Dec 2024 18:42:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRapG-000880-CQ; Sat, 28 Dec 2024 12:42:11 -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 1tRap9-00087X-CY for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 12:42:03 -0500 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 1tRap8-0002yR-7z for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 12:42:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:Mime-Version:From:To:In-Reply-To:References:Subject; bh=2SJGLo/W9NQn5UOJRCiR74gL2fD5tmgIH3U78ai5SH4=; b=JJDhQWT4fqyLaeLv8HTws6/k75umVRPhNC9GdwFOn6aeQEJubF+E0O0r4oDtCWqLap/0VFWR8bed8FPW0GDHgEsebeqwF9sWbNqwHjbk7bJcOOTF08eaMGfrCIaEYukQPs2swpSrw2yF3WIf650DzNyAS6rs6Bm1PHnN7zCfVTNYDGBQ8fQTaLj0NJSYFZw3fq27VDoIK68Pt1p5Pog8+qc6s8IUfAggrhI9FfLy7TIEOGnk4coFRiBVinr43mU4eZi5Xu0N4V3MNu64AeVWZoUjmCJnqFHpz/DltJOwUR0fIBuRvW4l7zmLbxzvdmhf77S0psGhK5Q6g9MHjhk//w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRap8-0000bW-2C for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 12:42:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Dec 2024 17:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74145-submit@debbugs.gnu.org id=B74145.17354076652255 (code B ref 74145); Sat, 28 Dec 2024 17:42:01 +0000 Original-Received: (at 74145) by debbugs.gnu.org; 28 Dec 2024 17:41:05 +0000 Original-Received: from localhost ([127.0.0.1]:52521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRaoC-0000aJ-RQ for submit@debbugs.gnu.org; Sat, 28 Dec 2024 12:41:05 -0500 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:45340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRaoB-0000a1-9B for 74145@debbugs.gnu.org; Sat, 28 Dec 2024 12:41:03 -0500 Original-Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-30227c56b11so92071751fa.3 for <74145@debbugs.gnu.org>; Sat, 28 Dec 2024 09:41:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735407602; x=1736012402; darn=debbugs.gnu.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=2SJGLo/W9NQn5UOJRCiR74gL2fD5tmgIH3U78ai5SH4=; b=U3dN3xXWN8l035mkFf+5RKFJYKTDDQCIkXUEEMvW9TZTEo8V/nUXCMChlSQzvIlCxl kvBqXygk2d8Mo4v3U8YnEQZGCd5vQfBNQJjheTGvwkY2tmw+kzcPU8aGPa6L+1hUr8Md lApD+uM2dCstdab3K+hHynFAlKIHHHY2VbBiTIvKSiGPLzz7zh2zTDNk/NHgfSpwqieI L4Ck9kzIQxeMaIJKAPXwGvbHWGYUP7UoIKPqtS5xq2au4JSLWPVJuPQ5a7xxaXXzLSB9 wHc8NtmgSOS6h78caq2gUZYtQc/iACgVRvolg889c16u3ODIhYsz0faETnlmqaco35gn Tg+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735407602; x=1736012402; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2SJGLo/W9NQn5UOJRCiR74gL2fD5tmgIH3U78ai5SH4=; b=n2hOmpcZ8Nntg9gp/n9hAx+bdwnW4R2S/bTevs7aGXR4oEVzSRsWly56bGS2pknfK0 MnhOnlmK6rTKP0wStAM7mTIPJBL3YBM7qEszBXRKUMHHVVXhKXP1LBvOs5wUIpSlVzUe vTau6ooNbnvWcDYHvRT2PQ6bXzrsyVzYeyUz5+m6ukrKpKLw/laGEiovaSMAYPr0el6K dUaK3eDU4Y93NXTvC743ryx4EC7cjwbSoTHbjla2zbzrxlkWcUFT+4zT0ukuUGgdIkLL vDfA06L5xWoO0B3cjkVbBSv+LZG0ELFkiC02ko+O01rnQb5fir3YkznD7XGH2hNdbO1S Pm+Q== X-Forwarded-Encrypted: i=1; AJvYcCXAjEdPny64DYnb1oPWfajTSOGYUvYZQ2qCrWiCe9n/jxsfHuau1HxREykQgV/ZntR+LnczWQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyXC35PoTeGtAGfTf+UTdJYO1I4lxOt6Sje3Awo2l9D0ZwxTSzI Sn0GLl6whRfj0YO87LqxPM2CiSfjx2Z/N+0Jw+tz0frJN6hQIdIQ X-Gm-Gg: ASbGncsfW6Dx2Dt6r2HDk76n/BAUGOi2gCw7XUI8Tf5MAvnWc8+jojpCSQOkuc+T6p0 NlLN2ZDFCjuacqd6G2A4+JX8teNc5A1uyGIQQqUgpx0XlP/ctnuYdYZB7Otmju3y7vBxxFRR4zB D/dCHYQftjfN1WJ/GWJ9cLB7FZo3JB5RQBIDP9yQqnIOzrqPS/x11Ct9sqb4oxIbfeqtpbPGE18 scPyhxiIbSM9gySo12ySGSMqedA/s50C89Q6+e0Vtt6HjsFMAUh1L6er30Mbyn2rFCd7u0oy3jr km7c2PangtWSn4JEzOLCJf5hNJZlJ/Z8CbKa3UdF4diD4y8= X-Google-Smtp-Source: AGHT+IHMl7bFyGABPjDUgqUyvwguSedagk5ASS8aCcgR+G99iON6uxmErzjHbE50/DUD7tCCTR301A== X-Received: by 2002:a2e:bc1a:0:b0:302:3a46:10a7 with SMTP id 38308e7fff4ca-3046851f9cemr84827951fa.5.1735407602026; Sat, 28 Dec 2024 09:40:02 -0800 (PST) Original-Received: from smtpclient.apple (c188-150-183-180.bredband.tele2.se. [188.150.183.180]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3045b069f0fsm29429151fa.84.2024.12.28.09.40.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Dec 2024 09:40:01 -0800 (PST) X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:297918 Archived-At: > I believe the time has come to change the default dialect. Agreed, the sooner the better. (Sorry about the delay; I'm trying to = catch up.) The compilation warning about missing lexical-binding declaration is = still there which makes sense. Eventually it should be removed but it's = not urgent to plan for it now. The patch looks fine. Some very minor comments (that you can ignore): =20 > - The old dynamic-only Emacs Lisp dialect is still the default in = code > + The new lexically scoped Emacs Lisp dialect is now the default in = code Maybe do away with the 'new' and 'now' here -- I think the documentation = should describe Emacs as it is, and NEWS have the changes. > for the old dynamic-only dialect. When no declaration is present the > -old dialect is used, but this may change in a future release. > -The compiler will warn if no declaration is present. > +new dialect is used. Support for the old dialect may be removed in > +a future release. Well, the compiler still warns, as it should, so this isn't quite = accurate. > =20 > +** 'lexical-binding' now defaults to t. > +The default ELisp dialect is now the lexically scoped dialect. > +Any code which has not yet been adapted should either be > +adapted or set 'lexical-binding' to nil explicitly. Maybe mention that the cookie warning is still there?