unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Lexical binding at top of file
@ 2024-07-06 22:56 Heime
  2024-07-07  3:13 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 6+ messages in thread
From: Heime @ 2024-07-06 22:56 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

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 ?.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-07-07 16:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-06 22:56 Lexical binding at top of file Heime
2024-07-07  3:13 ` 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

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).