all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.