From: Heime <heimeborgia@protonmail.com>
To: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Lexical binding at top of file
Date: Sat, 06 Jul 2024 22:56:37 +0000 [thread overview]
Message-ID: <6h42L0U-U94HhqHLh156OcIOej7dHQuiD36W-96JvBlIMkIPNysyeQWcbcRMrwa3vgLt7g8cgWcvUqfsfiRRJMtMlgj2oIOQRVl2NStHrzg=@protonmail.com> (raw)
To enable lexical binding in an elisp library, a line is put at the top of the file:
;; -*- lexical-binding: t -*-
Would the following also be good (three ;;; and the file name) ?
;;; file.el -*- lexical-binding: t -*-
Any idea when it would it be possible not to need the declaration, as lexical binding
for library files would be implicit ?.
next reply other threads:[~2024-07-06 22:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-06 22:56 Heime [this message]
2024-07-07 3:13 ` Lexical binding at top of file Stefan Monnier via Users list for the GNU Emacs text editor
2024-07-07 13:31 ` Heime
2024-07-07 14:20 ` CToID
2024-07-07 15:39 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-07-07 16:08 ` CToID
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='6h42L0U-U94HhqHLh156OcIOej7dHQuiD36W-96JvBlIMkIPNysyeQWcbcRMrwa3vgLt7g8cgWcvUqfsfiRRJMtMlgj2oIOQRVl2NStHrzg=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).