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 00:38:08 +0000 Message-ID: References: <878qtu7k77.fsf@librehacker.com> 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="11292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joost Kremers , emacs-devel@gnu.org To: Christopher Howard , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 08 01:38:31 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 1t9D1B-0002nT-KI for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Nov 2024 01:38:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9D0w-00017B-Lg; Thu, 07 Nov 2024 19:38:14 -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 1t9D0u-00016l-Q9 for emacs-devel@gnu.org; Thu, 07 Nov 2024 19:38:12 -0500 Original-Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9D0t-0003OS-5l for emacs-devel@gnu.org; Thu, 07 Nov 2024 19:38:12 -0500 Original-Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5cedea84d77so2341600a12.1 for ; Thu, 07 Nov 2024 16:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731026289; x=1731631089; 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=1EQ4pxq3tBumUvmVGQhzFJY02fZVObLsAd7hZV6ieX0=; b=FwCQ505l8btzUUsvnHKHFsAZhPBRE7VF27S6kCxWHHy6KbEzlsNiXvbzFKEQ/Qif4v O4LPlJSDglU74rd1q7RGxks38OLIOl1MJfYGuCx9j+HxLaGDd/GfyfpgOTXJu0/c/MhQ BDXIZMh9nQfVMWtjZpzPps9UpHwQbV3X/Bh8hR6bMgdAv7MK5F0MYIMHKRVT6MEQnH/B FMYrLxww5yzpgbCPCsLXst6GQXw6xex+TCUMRQOx9BXBoQrCBMba9OQmwcfcaYjzhXHz iY/X3F0gaP+DRYtXOMlO6UxWPBRBfL7GZvpiSF3/7yPev/U5vqqff6grjhe9Y2Gt9Znf LSYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731026289; x=1731631089; 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=1EQ4pxq3tBumUvmVGQhzFJY02fZVObLsAd7hZV6ieX0=; b=kZeDKq/DueBUONUg2VXLysNr/ldBPQISo28ir4bfCkf9FQ0WIwWBLZIvebsDZaPfoh NjAhvsnPbzI/mvFRykcPs5VaxPb6tLFC8ofxdnihO4nS6Q1W1FFOP3BZ2tHWgYYqF0a0 H5jnvzuQu81hY89grTDk1mQiEkqawyFHoQujntHHVMqsGm9tQNpgqFNfkg9L98uz0fdM 28G1NshI0WTN5sVdbiVLYgnn0YoDL95v9seOuMMmsBn7paJg6ZieiwKbRGkm+ozeQrC/ GXljieAMKNQyk9XmmVhwHof0D8lKWsJnWd3kUx9g6Cah7VQhqrpfdaFQZrru+NwYqRIZ t4Qw== X-Forwarded-Encrypted: i=1; AJvYcCWi7yLhX31oQeMFCJqY9clzf4elh8y7qgVfnii0vUeABwrHB+ydEAfVcieCQA0Zbmlik2wiTqtlCN11Zg==@gnu.org X-Gm-Message-State: AOJu0YwyI21Q1cPYs0QHq4RK9WKQjLYdfBCFIzEVkEAOgKfgPRiW/bo1 cRmYodWqIxr+3vRtDBffJxa2q4sHaqJqcEFMl2Rn1ZdO3pdHX9bdbYuJJwPqopDT+5LcEiMEVw0 XtqC8o+BTeX02BS9CDBeBqi1x1To= X-Google-Smtp-Source: AGHT+IFFDspTqDFR3YWtHQozBtuK/QY22oJ6WIzIWa2ANBlUhbARuleO+ZS/dZe/DGvb2K/5JOAGtFH2s04NtuRJwGQ= X-Received: by 2002:a05:6402:13c6:b0:5c9:6f20:4cf1 with SMTP id 4fb4d7f45d1cf-5cf0a4442b7mr562027a12.27.1731026289144; Thu, 07 Nov 2024 16:38:09 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 8 Nov 2024 00:38:08 +0000 In-Reply-To: <878qtu7k77.fsf@librehacker.com> Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x529.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:325247 Archived-At: 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 warnin= g > 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 i= f it doesn't already. *Note Selecting Lisp Dialect::.