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#66706: [PATCH] Automatic elisp dialect insertion Date: Wed, 25 Oct 2023 21:09:27 +0200 Message-ID: <98071F94-880A-4617-8733-EC91E2D4E6D4@gmail.com> 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> <83o7gmit1z.fsf@gnu.org> <1AADAFCC-F55E-4FD2-BBC1-3564E52AAEC7@gmail.com> <83bkcmim0i.fsf@gnu.org> 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="32470"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 66706@debbugs.gnu.org, monnier@iro.umontreal.ca, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 25 21:15:02 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 1qvjLK-0008Ge-1F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Oct 2023 21:15:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvjH0-0007fz-IM; Wed, 25 Oct 2023 15:10: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 1qvjGy-0007YK-Ra for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 15:10: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 1qvjGy-00014A-Jq for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 15:10:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvjHS-0000dL-AU for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 15:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Oct 2023 19:11: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.16982610122360 (code B ref 66706); Wed, 25 Oct 2023 19:11:02 +0000 Original-Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 19:10:12 +0000 Original-Received: from localhost ([127.0.0.1]:60045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvjGd-0000c0-Gr for submit@debbugs.gnu.org; Wed, 25 Oct 2023 15:10:11 -0400 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:46525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvjGY-0000bM-Bc for 66706@debbugs.gnu.org; Wed, 25 Oct 2023 15:10:10 -0400 Original-Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2c50305c5c4so1130411fa.1 for <66706@debbugs.gnu.org>; Wed, 25 Oct 2023 12:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698260969; x=1698865769; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=NB08UKc9JrJX+wnpbvO4cVFfOk1k+9LxqPsjLx5lqwE=; b=ZrLDXAwOphK8eBuWJKTGqu4+i5MUuzCylP20m30SmA/GuxwGt0ZWoaVZIePSPr8qzM EseqaVgXRkefWcYUbU+9OoxzyFDHJZDE/xyC4lCrNp1qcIGuNAdLSxE+j91VplSGw8Cr Xt5/ogu/W8GEpKcb1trpMfMHzHJvozOQBBQ9N6jBC5X0Zyd0u1KmfTz4pSWqhMIDYBxi yo9Zd2L6rKCvY0w59dTf61cCfk6OlmQF1PNmyhvCpn7S3eht5A/ZaD6NVyHomf5A7v7v W7yCc/mENxagoPrisNp60CWCcwf4CiL4b6ykGEQDcRhxVI9SknFLQCG0zo8cUyEB4KZ1 StLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698260969; x=1698865769; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NB08UKc9JrJX+wnpbvO4cVFfOk1k+9LxqPsjLx5lqwE=; b=cWuY/c5B9tFOUtXUFza+cZAhRiK0DQ3sUoobqsiMfVThsnC+sqHIfpnYfBdHUu1oN1 ZcLVhgRYR6p3jxv7NoQTh+jU66ebwhY+VV4BtKJ7p4lhQR1v7gAEntkJRpTAyAanapiH KAjj2KZ83h0vwS9lEuxb0hdV5aFPh6GAYSyEjRQ3PNSGkzf6heS1mUe0tvAy8Hq0aYNp iZEGNSORwGwFB23UgSTWQwehbgh5oeahx8U1U+vzUlu9auR7bCf8Gyri5zxHBAva7yOr VOjxXeHhQtZBYDkbxnSfpiuTDIsksJXVrx7LYTJAXLXY5WjyG+oF7kwCqQ2eO5UIaezo 6q2A== X-Gm-Message-State: AOJu0YyPQDXb605zuKY+g3JJBegDPT7zLuLfG28yogv59Z07AGsWGqzm CqGXcWvOL1ZmLnGbJJ01+HY= X-Google-Smtp-Source: AGHT+IFitvgHJqtDvl5FNd+O2XnGFVPeOjlQWm9WEybOBGztk5dnZR2Q+sVVGSlOitrN43XWMSvMDw== X-Received: by 2002:a2e:7c17:0:b0:2c0:33be:3530 with SMTP id x23-20020a2e7c17000000b002c033be3530mr10983118ljc.45.1698260969309; Wed, 25 Oct 2023 12:09:29 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id y5-20020a2e9785000000b002b6d68b520esm2467691lji.65.2023.10.25.12.09.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Oct 2023 12:09:28 -0700 (PDT) In-Reply-To: <83bkcmim0i.fsf@gnu.org> 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:273211 Archived-At: 25 okt. 2023 kl. 20.40 skrev Eli Zaretskii : >> No, the automatic cookie insertion doesn't affect existing code. >=20 > Which is even worse, because some files will use lexical-binding, and > others will use dynamic binding. In other words just like now (but better, since hardly any new code will = use dynamic binding). It depends on how much sympathy you have with people having existing = code written in the old dialect. It could be argued that they should = have converted their code long ago, but that assumes that they know that = they actually have that problem. Only now do we have a compiler warning telling them, which is only = effective if (a) people recompile their code when they upgrade Emacs = (which they don't need to do because we are almost too good at .elc = backward compatibility, and some run their code interpreted all the = time) and (b) they look at at the warning and decide to take action. We can and probably should try to devise other methods to catch those = falling through the net, but the assumption was also that we should give = them some time between being aware of the problem and being forced to do = something. Of course, this can be discussed. Indeed, ripping off the bandage quickly can also sometimes be the best = solution.