Tag Archives: closure

Emacs Lisp lexical binding gotchas and related best practices

Table of Contents 1. motivation 2. non-local variables and closures 3. gotchas and best practices 3.1. code as data 3.2. invasion of special variable 3.3. – – – 3.4. mixing iteration, closures, and asynchronous programming together 4. testing tools 4.1. … Continue reading

Posted in Emacs, Lisp | Tagged , , , | Leave a comment

lexical scoping and dynamic scoping in Emacs Lisp

In this article, I demonstrate: difference between dynamic scoping and lexical scoping in Emacs Lisp what to watch out for with dynamic scoping what you can do with lexical scoping and lexical closures what happens when you mix lexical scoping … Continue reading

Posted in Emacs | Tagged , , , , | 16 Comments