From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables Date: Sun, 25 Jun 2023 09:08:43 +0300 Message-ID: <83wmzsxedw.fsf@gnu.org> References: <83zg4oy9ow.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35076"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64272@debbugs.gnu.org, monnier@iro.umontreal.ca To: LdBeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 25 08:09:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qDIw6-0008x2-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jun 2023 08:09:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDIvo-0000cv-7u; Sun, 25 Jun 2023 02:09:04 -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 1qDIvn-0000cg-5V for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 02:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDIvm-0008WJ-Sh for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 02:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDIvm-0001O3-IR for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 02:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jun 2023 06:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64272 X-GNU-PR-Package: emacs Original-Received: via spool by 64272-submit@debbugs.gnu.org id=B64272.16876733235293 (code B ref 64272); Sun, 25 Jun 2023 06:09:02 +0000 Original-Received: (at 64272) by debbugs.gnu.org; 25 Jun 2023 06:08:43 +0000 Original-Received: from localhost ([127.0.0.1]:41929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDIvT-0001NJ-5z for submit@debbugs.gnu.org; Sun, 25 Jun 2023 02:08:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDIvO-0001Mx-At for 64272@debbugs.gnu.org; Sun, 25 Jun 2023 02:08:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDIvD-0008ME-6V; Sun, 25 Jun 2023 02:08:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SpEWPw11emv9KaEchK1ZGwTHzlELBgvbt+ZGbTJ9N6g=; b=F1ZCV6H999TK BrGTRPz6Yb826/7qzVaAy/ywj0B79RY3N8WI0z4XZ0t4lGSKPLqquXgNSAUdszA+ASuyxR4uy6trF V7vqkoly2+HCDEQKk4a4j+/epb24XaYoZVixecI9ino/GNcZcZaawA34vF2qZbuXIDT6pLAZCOyyI uiFj3OZTJmX1HbtBzFUTqdmTKTGyJI9ITgFVFW9NpXYvFpkeg3y1UgbsFSMj0+gHhzDX7Vj3wmcK9 CoZQk2ztYp80N8ECqgM9eZ763feMWFELWfTBt/pam+/KZz4Lv0WIUDN9k4xecU26dN5xe3xcjFQdV yB+tk7GwExknauAxCiAJFQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDIvC-00020D-6H; Sun, 25 Jun 2023 02:08:26 -0400 In-Reply-To: (message from LdBeth on Sat, 24 Jun 2023 21:11:11 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264031 Archived-At: > Date: Sat, 24 Jun 2023 21:11:11 -0500 > From: LdBeth > Cc: LdBeth , > Stefan Monnier , > 64272@debbugs.gnu.org > > Eli> I think we should do the latter, because > Eli> hack-local-variables-prop-line is more lenient than > Eli> lisp_file_lexically_bound_p. > > Eli> Stefan, any comments? > > If so, I think the only thing needs to be changed is > remove the `if (ch != ';')` test. > > Since from what I test, even if first line is something like > > |(setq tmp " -*- lexical-binding: t -*- ") > > the file local variables would still be applied. I'm not sure we want to support this outside of a Lisp comment. Stefan, WDYT? Could false positives cause harm?