From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71985: Lexical directives at start of file Date: Sun, 07 Jul 2024 18:45:12 +0000 Message-ID: Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32476"; mail-complaints-to="usenet@ciao.gmane.io" To: 71985@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 07 20:46:14 2024 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 1sQWtq-0008FF-84 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jul 2024 20:46:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQWtd-0003FF-74; Sun, 07 Jul 2024 14:46:01 -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 1sQWtb-0003F7-IE for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 14:46:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQWtb-0007cX-A7 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 14:45:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQWte-0002AW-Md for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 14:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jul 2024 18:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71985 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.17203779358268 (code B ref -1); Sun, 07 Jul 2024 18:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2024 18:45:35 +0000 Original-Received: from localhost ([127.0.0.1]:49190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQWtC-00029H-SE for submit@debbugs.gnu.org; Sun, 07 Jul 2024 14:45:35 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQWtB-00029A-2i for submit@debbugs.gnu.org; Sun, 07 Jul 2024 14:45:33 -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 1sQWt6-0003DI-Cc for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 14:45:28 -0400 Original-Received: from mail-0301.mail-europe.com ([188.165.51.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQWt4-0007N2-TD for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 14:45:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720377921; x=1720637121; bh=3ZwEFdND7VtbLUtW/elPmVeaWRW6Ddbbx/owCU88gHU=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=u6NRVgvxdWP8qLbO99nA5U73xLkrRwggctkHGmAOicHam9Z2d1JFhdIPFlC/A6Qjq SJtEXLGbcS2qEgSRhEwYjEn8Yg+qJWyjYAlz5nnIInBLyYiSx4MKhIsz+p43737223 xpTWJNYAvATzlA49pnN/kRU6h3bHOFo1wmTWHWdAhp0yuxOenueRJaDPvxYo7jsu7p VhFJPk5kH9tCpuIktPr3ZEbza5Xd85+iMiNDyuWRCszxQ233uRdXD03WDQMkHxMMRF PDsup9XjvpEsepuvsHNQ6oQ0FIw12Xnunm5aTQROKyEXydt4jaw9WbS+aQYDNsZApv A4Bqgt53MMwwA== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 60d3a2b9a0e07d04a23205b5e2de51e0bcf90d17 Received-SPF: pass client-ip=188.165.51.139; envelope-from=heimeborgia@protonmail.com; helo=mail-0301.mail-europe.com 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, FREEMAIL_FROM=0.001, 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-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:288569 Archived-At: I was curious whether the -*- lexical-binding: t -*- directive is effective= =20 when there is an arbitrary number of comment characters before it. For instance, in file.el: ;;; file.el -*- lexical-binding: t -*- This is the first line from git-rebase.el in the Magit package: ;;; git-rebase.el --- Edit Git rebase files -*- lexical-binding:t -*- This suggests that some characters can precede the variable list. However, it's unclear if the number of characters can be arbitrary. I couldn't find a clear explanation in either the Emacs or Elisp manuals. The Emacs manual= =20 mentions that it can be placed on the second line of a shell script, but=20 doesn't provide much detail on the format. The Elisp manual does not descri= be=20 the appearance of this directive at all. I was wondering whether the "-*- lexical-binding: t -*-" applies when=20 there is an arbitrary number of comment characters.=20 ;;; file.el -*- lexical-binding: t -*- This is the first line from `git-rebase.el` from magit. ;;; git-rebase.el --- Edit Git rebase files -*- lexical-binding:t -*- So one can have some characters in front of the actually var list. But not= =20 sure if it's arbitrary. I don't see it mentioned anywhere in both Emacs an= d=20 Elisp manual. In Emacs manual, it only mentions that it can be placed on t= he=20 second line of a shell script. Elisp manual doesn't even mention how it sh= ould look like.