From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Default lexical-binding to t Date: Sun, 3 Nov 2024 00:47:47 -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; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3924"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Visuwesh , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 03 08:48: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 1t7VLb-0000uu-RS for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Nov 2024 08:48:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7VKy-0002GO-AJ; Sun, 03 Nov 2024 02:47:52 -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 1t7VKx-0002GE-8V for emacs-devel@gnu.org; Sun, 03 Nov 2024 02:47:51 -0500 Original-Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7VKv-0005m1-KK for emacs-devel@gnu.org; Sun, 03 Nov 2024 02:47:50 -0500 Original-Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2e2e2d09decso3113592a91.1 for ; Sun, 03 Nov 2024 00:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730620068; x=1731224868; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=sxC96s3OISHzGVQ1FDA8ZXATAjYvZCm/fRCOvd8NB8Q=; b=XAA6z3uBojjhlZiNYYPs9jSOPKzDoCr7tfUvEK7Vvosyn/dgsNcSGPUu9NVF9tm+Zg ScjpdGAtXImWZnhOQaYbg+Ir02fCrVkYGPXgUOeAe8/RnFIfr6kMLn9j1DJtPZO8WuVQ QZPW4PIPMgWFSDr7e7lL57kjVtW9zITLaKX6XFoHQpO3+ffcteVmBGFpsPXuwdiCRad2 B5H0vRNNwWFR28ASQEBHdknkQzWKtUV5qEGb/sQUCQis6feyFk3+40DiaNvEJgBdvXoI bb1IcZGwLIYqDD4Y2t8I4+IHLAd2aDDne8VZa+grvmCg+jvDdL6M+Z4lB73qzT9ZRPNf mihw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730620068; x=1731224868; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sxC96s3OISHzGVQ1FDA8ZXATAjYvZCm/fRCOvd8NB8Q=; b=fC6WcHA113thQN9DtaiOMGuIBImJGh1nQD/5/3jcow47QZsMENH4Pgow8p1BcO7Ihx uEH/8k88D+O6Cx3aKvWFKhXYXaWsAaa5SqD5cGnARaNE/ddlFURuht28VYTjQbAuLvIx wjd8fnrzPeqGFHV0lI56pacP8wXpcpu7Xaq+X377KbomWtwkSi6SluIqjf8cpCFbkIU9 BmfRUoheU+uODglV34eBhijIq+utwWmHkUL/AC0l88zCvFiOnPXDNkUEJEnIhGDZY+uP CfsTezYmtefp3WryZFg8lw44jnZ/6+fwJp8f07AWIF2VYx12CXNB67RcGSqFxuCel+UN l78Q== X-Forwarded-Encrypted: i=1; AJvYcCX7SiLFLFVjSa6Z1PzyZ6VWZsh2VqOx/6Kb0owCbk+dn8+HarCrhAVYgabuuHh8IZ2qrM4o1zBwqEC+PQ==@gnu.org X-Gm-Message-State: AOJu0YzVWnHiZNl/zJnPDgo/NmxYD2ZOX26QQwsD47HBSJz1bKKC79Mo /AzeCALxlN3zw6Ns390UuGI6OgHv2SwYz39XK201yxzd5Qyzxr05+CMi1w== X-Google-Smtp-Source: AGHT+IHVy07aSTH8w7fLHG82ZIDMXy9RZ9i7noy6l5zvxtxEIOpliOXFlSU4KufdAa4vT13icxlnjQ== X-Received: by 2002:a17:90b:1a8f:b0:2da:82d4:c63c with SMTP id 98e67ed59e1d1-2e94bcb6255mr13513031a91.4.1730620067971; Sun, 03 Nov 2024 00:47:47 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2e93daac455sm6104314a91.19.2024.11.03.00.47.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Nov 2024 00:47:47 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x102f.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:325048 Archived-At: On 11/2/2024 6:46 PM, Stefan Monnier wrote: >> 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). Hmm, maybe (possibly in addition to other warnings), we could add a Flymake check to ensure that 'lexical-binding' is present when the "Package-Requires" metadata says the package supports Emacs < 31? That way, package authors would hopefully see a warning when editing their package.