From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Default lexical-binding to t Date: Fri, 8 Nov 2024 12:11:34 +0000 Message-ID: References: <878qtu7k77.fsf@librehacker.com> <86fro2p4lh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19545"; mail-complaints-to="usenet@ciao.gmane.io" Cc: christopher@librehacker.com, acm@muc.de, joostkremers@fastmail.fm, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 08 13:36:39 2024 Return-path: Envelope-to: ged-emacs-devel@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 1t9OEA-0004vx-C0 for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Nov 2024 13:36:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9Nq2-0004XV-Ds; Fri, 08 Nov 2024 07:11:42 -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 1t9Npz-0004X7-EH for emacs-devel@gnu.org; Fri, 08 Nov 2024 07:11:39 -0500 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9Npx-0008OP-7P; Fri, 08 Nov 2024 07:11:38 -0500 Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5c9c28c1e63so2500277a12.0; Fri, 08 Nov 2024 04:11:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731067895; x=1731672695; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=rmqUaxJc3mvF1LHDyO/BTD8cI+di/LSA2SnTGcMrps8=; b=N3N9GEYh+G84vnJIgxO5xLXsTLT6V6S8XlMRbTRWip7Fq47wxfJoQBt+Vm85ejePLD B5ioKSJHNzEcEFzmFSlOr1ekIF8yQZ6UIF2GWyc2rUwQ1na8yOEqf9twdPcjiDr4vW0C eUGIxwx92ckiybRaSLE+zZ4INfOeBtFksRdnNR7YEI1AFdSKqqj+zq+1lGa8rYgs+FWJ lvHsWVB22E8FeSp8jBHHAsI0jMjM3BDM2mX+3yAZVmJWtL8UOiDA0EtoRg1EtPHXUKKJ XHmeTLDYNXLnvsZhTXZJbtsWBDrf2JBS0KiGj05AMtOqXmtijP6CM/JKsrwQ9lSBXrMf IFWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731067895; x=1731672695; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=rmqUaxJc3mvF1LHDyO/BTD8cI+di/LSA2SnTGcMrps8=; b=OZ6aw45I+hqftE/IPupnJyb57aPiX1NG64SbrTMQT7xH6KN1cB+KPmAk1U5Ai5zxC2 TYgpCnYXA7SGEpzUkAiiklJ+l9N8RSQfyWEyykegjP2a7oQbGrxfq2BitpAemzcn6t2J ORBph22tFSOnmv7K1SSF1tCgIjIUdBTNrnD6FYaWo3vaVHj5eE0HyetXwTtcdv+qj/UF h4o2ynE8dY1US6SlM/pwKxn9SO4wwl0NINPiXECi5LrOuDkBcUYuY+rtOgVZBqNmNxM5 V5kpVNtSXLDUuOF0ecvzFLO0KaeUmMHdt4UJtATz265/oQeyE/zLVZ1EHK0aFHA/GT4E OkAw== X-Forwarded-Encrypted: i=1; AJvYcCXhBdq77uWEE2p1+52+uacpikE4aJEmsCzXX+XgCl7fgml7FrJY9x2PJYwIqfluzamdROrt+AWd0ljG6g==@gnu.org X-Gm-Message-State: AOJu0YyglJwsfhaJs9JqqlWximPfu+PIL4GpqsjtH3Jg8cqRizi7X55y 6RdULO+V56C46Vp+fVv+N4zAiqCilv1rMQY1ByARDoda2oaG0S95QHHO0wbvXcCebJw46G7bhHW CwirlmXqLdtnyyBTsaZbCVKJ003N82A== X-Google-Smtp-Source: AGHT+IG+FnZV0wum+vkQb2i8Y5qPVp83xFlboqERHrE7EvC19VnJ/Fpbvmd9kNqo26mWF0aKlaGKgXGQ4BYupXFIaZw= X-Received: by 2002:a50:d5c7:0:b0:5cf:f82:edfd with SMTP id 4fb4d7f45d1cf-5cf0f82eebdmr1662719a12.3.1731067894574; Fri, 08 Nov 2024 04:11:34 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 8 Nov 2024 12:11:34 +0000 In-Reply-To: <86fro2p4lh.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x531.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325276 Archived-At: Eli Zaretskii writes: >> From: Stefan Kangas >> Date: Fri, 8 Nov 2024 00:38:08 +0000 >> Cc: Joost Kremers , emacs-devel@gnu.org >> >> Christopher Howard writes: >> >> > Hi, I just wanted to mention one little thing (feature request?): I >> > noticed that, if I include this >> > >> > ``` ;;; ... -*- lexical-binding: nil -*- ``` >> > >> > in order to purposefully set the lexical-binding to dynamic =E2=80=94 = I'm a >> > rebel, I guess =E2=80=94 then the mode-line still gives the "/d" a war= ning >> > face. In my theme, that shows up as bright red. But if I set it to "t" >> > instead, then I get a "/l" without a warning color. I don't see why, >> > if I purposely chose dynamic binding, that Emacs should treat it as a >> > bad thing which I need to be warned about. >> >> Yes, that is on purpose. See (info "(elisp) Coding Conventions"): >> >> =E2=80=A2 We recommend enabling =E2=80=98lexical-binding=E2=80=99 in = new code, and converting >> existing Emacs Lisp code to enable =E2=80=98lexical-binding=E2=80= =99 if it doesn't >> already. *Note Selecting Lisp Dialect::. > > I don't think this justifies nagging a user who explicitly wants some > file(s) to be treated as using dynamic binding. The above is just a > recommendation, not a hard requirement. I don't consider this as much more than a gentle nudge and reminder. The mode line indicator has been with us for a few releases already, and I personally don't see compelling reasons to change that decision now.