]> git.eshelyaron.com Git - emacs.git/commit
(lexical-binding): Allow changing the default value (bug#74145)
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 Feb 2025 20:37:50 +0000 (15:37 -0500)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 21:34:16 +0000 (22:34 +0100)
commit1f3550e9340e3a041b4179b2e79e0b1294b48ad3
tree9d1c116764ac7f09f386692ad43af634fd332756
parentf50771895f3a546438928e4667bbabb8ba97f71b
(lexical-binding): Allow changing the default value (bug#74145)

* lisp/loadup.el: Preserve (default-toplevel-value 'lexical-binding).

* src/lread.c (Fload, Feval_buffer): Obey (default-toplevel-value
'lexical-binding).

* doc/lispintro/emacs-lisp-intro.texi (Lexical vs Dynamic Binding
Example): Use the lexical dialect also for the dynamic
scoping example.
* doc/lispref/edebug.texi (Edebug Eval): Remove long-obsolete mention
of Edebug support for `lexical-let`.

(cherry picked from commit d685d21e8ae0cee566420d4dd68586f018b2ce0b)
doc/lispintro/emacs-lisp-intro.texi
doc/lispref/edebug.texi
doc/lispref/variables.texi
lisp/loadup.el
src/lread.c