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 19:19:41 +0000 Message-ID: References: <86frsl10vx.fsf@gnu.org> 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="1453"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71985@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 07 21:20:26 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 1sQXQw-0000FS-FE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jul 2024 21:20:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQXQW-0007D3-Ey; Sun, 07 Jul 2024 15:20:00 -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 1sQXQU-0007CM-T3 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 15:19:58 -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 1sQXQU-0006pn-Kj for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 15:19:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQXQY-00036c-NS for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 15:20: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 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71985 X-GNU-PR-Package: emacs Original-Received: via spool by 71985-submit@debbugs.gnu.org id=B71985.172037999811908 (code B ref 71985); Sun, 07 Jul 2024 19:20:02 +0000 Original-Received: (at 71985) by debbugs.gnu.org; 7 Jul 2024 19:19:58 +0000 Original-Received: from localhost ([127.0.0.1]:49215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQXQT-000360-PC for submit@debbugs.gnu.org; Sun, 07 Jul 2024 15:19:58 -0400 Original-Received: from mail-4027.protonmail.ch ([185.70.40.27]:46581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQXQR-00035j-NB for 71985@debbugs.gnu.org; Sun, 07 Jul 2024 15:19:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720379985; x=1720639185; bh=RmTcG7xRcVoeIR7wMAs12xP8r7q0edQE0dUGjPj72no=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=CQ+ApDn8XpjJZ7Dr3sPdgyuDePp2CYAY3S56rYZkxmyFPVnMSrsPO52KN7gSLDPPl WleuioppP1BUWV7Xk0WRD6mabPE4vkK4O+Cpt0zmpoaO9gx+c5NIcQ3VEh90HVJI7N y29bYWk8Gtz/hzGNnA0dn5b6K9+j36ElohrUs/CiMBgwc69L5HGbRgQgB02pfAMRkK 6tyWS5gBd3hOi3koN8w+Lh2nRGtivYDVHSPIr5iCqP8rZhXJNoc96nHcXztEcwGx1r HXdjE8e9ZYbpN2kvELiX55QBQC3pWB63W1bFPb8EIxFBTffT0iQH2+AKXYd7EaRXCa YYPDkea2F87EA== In-Reply-To: <86frsl10vx.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: ced4728a69d5b8bf2adb2357c7ae4edd3e0df7e5 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:288571 Archived-At: On Sunday, July 7th, 2024 at 7:02 PM, Eli Zaretskii wrote: > > Date: Sun, 07 Jul 2024 18:45:12 +0000 > > From: Heime via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" bug-gnu-emacs@gnu.org > >=20 > > I was curious whether the -- lexical-binding: t -- directive is effecti= ve > > when there is an arbitrary number of comment characters before it. >=20 >=20 > Why do you need to know this detail? Because I use ;;; as highlight when using outlines. =20 > > For instance, in file.el: > >=20 > > ;;; file.el -- lexical-binding: t -- > >=20 > > This is the first line from git-rebase.el in the Magit package: > >=20 > > ;;; git-rebase.el --- Edit Git rebase files -- lexical-binding:t -- > >=20 > > This suggests that some characters can precede the variable list. Howev= er, > > it's unclear if the number of characters can be arbitrary. >=20 >=20 > Above you mention "comment characters". Here you are talking only > about "characters" in general. I'm confused by what you are asking > about. Yes about the starting ;;;. But then I have also seen additional non-direc= tive descriptions before the -*- lexical-binding:t -*- directive. As the lexical definition will be around a while, it would be good to know = what would be valid. =20 > > I couldn't find > > a clear explanation in either the Emacs or Elisp manuals. The Emacs man= ual > > mentions that it can be placed on the second line of a shell script, bu= t > > doesn't provide much detail on the format. The Elisp manual does not de= scribe > > the appearance of this directive at all. >=20 >=20 > The above is incorrect. The ELisp manual shows how this line should > look in the nose "selecting Lisp Dialect". I think that node answers > your questions. >