Well, I'll need to find the thread in the emacs-devel mailing list in which people discuss the conversions of the source files to lexical binding... most of the files were trivial to convert, only a handful were tricky...
Does this help? https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01854.html [[]], E. On Wed, 3 Nov 2021 at 05:55, Erich Ruff <erich_r...@t-online.de> wrote: > Hi Eduardo, > > first: emacs 28 is not in the official repos of Arch-Linux, I use. So > you had to compile it yourself. - I think the 'normal' user would not do > this. > > Perhaps it would be better to suppose that the user works with the > emacs-version its brand of linux provides? > > By the way: > This one of the moments I get stumped. The example for the > explanation is contradictionary - what shoult the student do? > > Cheers > > Erich > > On Mi 03 Nov 2021 at 05:38, Eduardo Ochs <eduardoo...@gmail.com> wrote: > > > These lines became mandatory for the elisp source files of Emacs itself > only a few months ago - they > > used to be optional, but the developers are converting all the files in > Emacs itself to lexical binding... > > > > So: not a typo - I was thinking on Emacs28, that is not _yet_ what most > people install by default... > > > > On Wed, 3 Nov 2021, 05:25 Erich Ruff, <erich_r...@t-online.de> wrote: > > > > Hi Eduardo, > > > > I'm reading your tutorial on lexical binding > > > > You write: > > > > 0. How to use this > > ================== > > Usually people select between lexical binding and dynamic binding > > by putting their functions that use lexical binding in files with > > a "-*- lexical-binding:t -*-" in their first line, like this: > > > > (find-efile "play/tetris.el" "lexical-binding:t") > > > > ------------------------- > > > > but if I open "play/tetris.el" ther is no first line like: > > > > -*- lexical-binding: nil; -*- > > > > or > > > > -*- lexical-binding: t; -*- > > > > a typo ? > > > > Cheers > > > > Erich >