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: Sat, 2 Nov 2024 19:30:00 -0700 Message-ID: References: <877c9lykpz.fsf@gmail.com> <10694ea0-f2cd-0b2c-e90e-b21291c953c4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4915"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Visuwesh , emacs-devel@gnu.org To: Stefan Monnier , Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 03 03:30:48 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 1t7QO8-00015j-Ae for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Nov 2024 03:30:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7QNU-00085z-6u; Sat, 02 Nov 2024 22:30:09 -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 1t7QNP-00085h-Lp for emacs-devel@gnu.org; Sat, 02 Nov 2024 22:30:03 -0400 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7QNO-0008Tu-6c for emacs-devel@gnu.org; Sat, 02 Nov 2024 22:30:03 -0400 Original-Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5cece886771so990510a12.0 for ; Sat, 02 Nov 2024 19:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730601000; x=1731205800; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=SbWv/DOVNn5pX1VhOoWeUtWda8UQtcKdrOKdijSiR9M=; b=hevyQk12xVqST3USkqr85cKrdbVsvnkR7heISAUm4Up0NLSuQcsdLf584Q7qpal8i7 li1ZZ6WcbPIGpNjOjM+Hf+FTfOPXxbgvGG9Sn4EWnstnxvAG3KvXJQE+pVB5v+XtL02w wY7FiQ0Z5AFIWdySvMGGE81oP78q5nv+Ny5Tk70ssKK2etPGFzaQbWwr8scUXaxmWEHB kEBWT7DD/fEIo41SZXi4YyG0YBScIrvxoljxRwPYpilHN63D9ajyn16GZUwoqnzd9GDk OYpjUg5EeKqA6G/RoSuGX43peTlsFwXtlJG8tVDIdRvP6Lv/+YpoXClQ4/XaXn6SOWUH RmAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730601000; x=1731205800; h=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=SbWv/DOVNn5pX1VhOoWeUtWda8UQtcKdrOKdijSiR9M=; b=YbPD+J4j/CfRZZbD1AIHgDQmqTRjjqzoCHWhrMzb9y493OTcpIhLod3nyPkR3z0xuP Z2KQv7DDVD5OWPAUGs7RjRfsOwMqS2k1e0DJs0Ve/ag5AE3cP071+7/W87+4Ac2+kGOW anh1+1ks5ff7uUxH/mw7Wtbu5WRcVBfewRKGTs3mV+vS7Guh2yZhMuWHCgQCEMpZ88Gw behCE/Bl0Ofc3gCbxFw87KkzuP0VipKHUyDXU4t4imJ/EDJcXnpTJ4PiowMAjOZH3VON mR4rDeGiwMaaqhCXhQXnbj0pYUGpxEkg0JEI/ZKAznVrNq2CJ9T/8ZZAmKqnZkNu7c6T 30pQ== X-Forwarded-Encrypted: i=1; AJvYcCXMgQhmbWfRwAe6koQo9donVNAFzshrf3jFbBcV6bkmu0ywa8lcN/PyKRRKUSJuoQUOq1R9CS/Ak2LbHQ==@gnu.org X-Gm-Message-State: AOJu0YyLzQBejCW+owuFmLlvY2srYORQwLDhdf5xhRjEQGwjdknvf5eW 5//macvGKKYgrtfaRbh1ApgwFZJvosUtmGrcgmvT8mmUxR78H6JsWdUGktT94CX5EZHlmgsIngI a7Qv7HfEjZhEP459XthXizitcnur9tQ== X-Google-Smtp-Source: AGHT+IG4Faf6tDj79PEK735rRKrVzg6yTWiVdL7dggYpnojiVu2EUraA0dmkoKN+0ZpHuTp1HZafVz893yLSBe65Oys= X-Received: by 2002:a05:6402:2811:b0:5c9:3f1:e5cd with SMTP id 4fb4d7f45d1cf-5ceb8b49f3fmr8035641a12.0.1730601000316; Sat, 02 Nov 2024 19:30:00 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 2 Nov 2024 19:30:00 -0700 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x536.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:325040 Archived-At: Stefan Monnier writes: >> As for warning about a missing 'lexical-binding' cookie, maybe we could >> check the "Package-Requires" metadata and warn if the "emacs" requirement >> is less than 31, but there's no 'lexical-binding' cookie? > > AFAIK we're talking about warning when *loading* `.el` files. > This should almost never happen for files installed via `package.el` > (which always compiles the files). > > Also, I'm not fond of such "fanciness". I think it would be complicated > to implement and brittle. I tend to agree, FWIW.