Emacs Lisp Lexical Binding: Why Your Closures Capture Values, Not Names
Emacs Lisp defaults to dynamic scoping, causing closures to capture variable names, not values. Adding a file-local variable enables lexical binding per file, fixing callback bugs and letting the byte compiler optimize. Includes a timer-loop example, macro trade-offs, and verification steps.