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#71985: Lexical directives at start of file Date: Sun, 07 Jul 2024 22:02:26 +0300 Message-ID: <86frsl10vx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35541"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71985@debbugs.gnu.org To: Heime Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 07 21:03:18 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 1sQXAL-000936-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jul 2024 21:03:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQXA4-0007hC-0J; Sun, 07 Jul 2024 15:03: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 1sQXA2-0007gi-Ku for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 15:02: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 1sQXA2-00039f-By for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 15:02:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQXA5-0002gC-Ng for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2024 15:03:01 -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, 07 Jul 2024 19:03:01 +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.172037896210276 (code B ref 71985); Sun, 07 Jul 2024 19:03:01 +0000 Original-Received: (at 71985) by debbugs.gnu.org; 7 Jul 2024 19:02:42 +0000 Original-Received: from localhost ([127.0.0.1]:49199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQX9l-0002ff-L5 for submit@debbugs.gnu.org; Sun, 07 Jul 2024 15:02:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQX9k-0002fN-Ih for 71985@debbugs.gnu.org; Sun, 07 Jul 2024 15:02:40 -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 1sQX9Z-00033d-Ef; Sun, 07 Jul 2024 15:02:30 -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=G3v92GqQ3CokqYmsn7MQnMb0XG5TcAz5nmoyeWEi+R4=; b=RjtoYt2gcH9P 2jLuC+Vs5xIJX6LpwjtoAZlmnipN678lyIVynGwLNLddVGZKCaJVGAd9A67/jH0BwpD/CLkuoAOji N9QCQkpc4QAF6sFn2tJqaJ8Z6QVJ1YBialqKkkVtViYa9s/rdI7hw+0nNgvSnpvZyZV3aOMSCYLTj RuEz//j4NFI3f5VrdrwTw3OX9ApRteY7ySwy7hOJiQeKYSB/QYa8imT4BTvL+BGJXepF5vNAFVc2k 7UUGcNBD9s5Mp0DZu/PD/APyFLVntzy9ZgYA4/88wwjLqjiJR+PagEe6/kmUdjiC/ES30qpn8hwDI h/1OFs4ZYN7YNVqEuKeR2A==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:288570 Archived-At: > Date: Sun, 07 Jul 2024 18:45:12 +0000 > From: Heime via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I was curious whether the -*- lexical-binding: t -*- directive is effective > when there is an arbitrary number of comment characters before it. Why do you need to know this detail? > 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. Above you mention "comment characters". Here you are talking only about "characters" in general. I'm confused by what you are asking about. > I couldn't find > a clear explanation in either the Emacs or Elisp manuals. The Emacs manual > mentions that it can be placed on the second line of a shell script, but > doesn't provide much detail on the format. The Elisp manual does not describe > the appearance of this directive at all. 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.