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: Mon, 26 Jun 2023 13:59:32 +0300 Message-ID: <83cz1ixze3.fsf@gnu.org> References: <83zg4oy9ow.fsf@gnu.org> <83wmzsxedw.fsf@gnu.org> <83mt0ny47z.fsf@gnu.org> <83h6qvxv8q.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9877"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64272@debbugs.gnu.org, andpuke@foxmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 26 13:00:29 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 1qDjxN-0002Lz-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jun 2023 13:00:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDjwz-0003hc-LE; Mon, 26 Jun 2023 07:00:05 -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 1qDjwy-0003hB-29 for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 07:00:04 -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 1qDjwx-00051T-Ht for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 07:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDjww-0007cU-NA for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 07:00: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: Mon, 26 Jun 2023 11:00: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.168777716629216 (code B ref 64272); Mon, 26 Jun 2023 11:00:02 +0000 Original-Received: (at 64272) by debbugs.gnu.org; 26 Jun 2023 10:59:26 +0000 Original-Received: from localhost ([127.0.0.1]:44606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDjwL-0007b9-Q2 for submit@debbugs.gnu.org; Mon, 26 Jun 2023 06:59:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDjwI-0007aw-0j for 64272@debbugs.gnu.org; Mon, 26 Jun 2023 06:59:23 -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 1qDjwB-0004s1-GZ; Mon, 26 Jun 2023 06:59:15 -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=87dej/VSV3wfJZhlAC3qmHtkF2kldzCOiY9homdWZ3A=; b=VAlaBK3R0GxT 4MiiZInIG3Rr/hF6Lyutrz0XseMcnFI5Uo5ynPcs2v5xmXqGrVqovFxgMMXWh1clNlc6BC6Y5nbYM 3COB8VdCBSc/EfTyR4jxRN45EcbziNWFPcQMZYE/R3CGPBJBMXq1Ki+2IAliCD/hmKanlhMoXXRUN r418fwBpbKn+WTNU6AbDRL6mwkH++4NC4OI19XYlYlVA5EaVHCj3Krc15FspmVPrD4Ap+XQL12K44 d53Vi38bbTcnmB1L+wQlnc9+tJ3HJjlexQnQOMLsxY6O3nXgXdbapuJ1vJJSSIKTXqD61I9r6ntQq K/kqejmSHGZG+TTAR7F3Nw==; 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 1qDjw8-0004Wx-Cm; Mon, 26 Jun 2023 06:59:15 -0400 In-Reply-To: (message from Stefan Monnier on Sun, 25 Jun 2023 19:00:04 -0400) 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:264089 Archived-At: > From: Stefan Monnier > Cc: LdBeth , 64272@debbugs.gnu.org > Date: Sun, 25 Jun 2023 19:00:04 -0400 > > > So now let me turn the table and ask: if we are only going to support > > whitespace before the semicolon, then what exactly are we gaining > > here? > > I think the main problem is the disconnect between the various ways the > cookie is recognized, so it may appear to work on one end and fail to > work on the other, leaving the user rather perplexed. > > So maybe we should export `lisp_file_lexically_bound_p` to ELisp, let > the byte-compiler (and maybe also `emacs-lisp-mode`) verify that it > gives the same answer as `hack-local-variables-prop-line`, and emit > a loud warning if it doesn't. Patches welcome.