2 ms·
if I understand what you mean, elisp has dynamic scope. that's turned out to be useful to me a couple times...balanced against the hundreds of times that it did
by convolvatron 4y ago
if I understand what you mean, elisp has dynamic scope. that's turned out to be useful to me a couple times...balanced against the hundreds of times that it did something I didn't want.
- yakubin 4y agoYou can opt into lexical scope for a script by starting it with: ;; -*- mode: Emacs-Lisp; lexical-binding: t; -*- You can then opt into dynamic scope for single variables, when it makes sense: (defvar variable)