From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: abq@bitrot.link Newsgroups: gmane.emacs.devel Subject: Why is lexical-binding's global value ignored? Date: Fri, 27 Jan 2023 20:01:47 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27780"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 28 07:58:32 2023 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 1pLfAV-00072w-9s for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Jan 2023 07:58:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLf9w-0005Jt-4b; Sat, 28 Jan 2023 01:57:56 -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 1pLbTX-00028Q-Vo for emacs-devel@gnu.org; Fri, 27 Jan 2023 22:01:56 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLbTU-0002vd-K4 for emacs-devel@gnu.org; Fri, 27 Jan 2023 22:01:55 -0500 Original-Received: (Authenticated sender: root@bitrot.link) by mail.gandi.net (Postfix) with ESMTPA id 0638C1BF203 for ; Sat, 28 Jan 2023 03:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitrot.link; s=gm1; t=1674874908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bwyIhphSKKkjy8IKmRKwWgNgYXVSJnSjNlRPucHe81k=; b=fLBcCr1xXnknbs954LQ1tcR9NARnGv5zm3suWq9ETCDn+NCnL8qwYz4vHMr/KZFWp8ixbh 8xu9LCjOLf6V1Uhk0GVkSJklyipztpMA9OecUWLHGrvYTcp/xGibXnwsEZCr9wEbHompnF TzeZXucn+sXf6x0fKU77ZtViY6mDZFhjakpatWAxrcvCL/71lQK0QinSgFO3dw/Lukjcsa mnithxWz6A304YJpTyu7R3aR3wGWO8yAM0sweiRLg+CCe5bsHCOFtewdZmoGsv/YsmKIjB Q+9Grf5gLsTumtjKOEwidQSDuWuEEOUL33ZQqGcccZHKhDQwk52LSPH/NV+HrA== X-Sender: abq@bitrot.link Received-SPF: pass client-ip=217.70.183.201; envelope-from=abq@bitrot.link; helo=relay8-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 28 Jan 2023 01:57:54 -0500 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:302700 Archived-At: If somebody does (setq-default lexical-binding t), the intention is obvious. But in current versions of Emacs, when loading a file that doesn't specify a local value for lexical-binding, the global value is ignored. Why? IOW, what would break if the global value were honored? It defaults to nil, which is already how files are loaded if no local value is specified, so honoring the global wouldn't change anything by default.