I just learned from an emacs developer that it would be a good idea to “futureproof” my file cweb.el by prepending the following line:
;; -*- lexical-binding: nil -*-
(He said the default conventions for lexical binding will probably change soon.)—see https://www.gnu.org/software/emacs/manual/html_node/elisp/Variable-Scoping.html for details.
From the emacs lisp manual it seems that you could also say
;; -*- lexical-binding: t -*-
if you know that the code works fine with lexical binding. The manual says that you could remove cweb.elc (if present) and byte-compile; then you'll be told if the code references anything dangerous.
I just learned from an emacs developer that it would be a good idea to “futureproof” my file cweb.el by prepending the following line:
(He said the default conventions for lexical binding will probably change soon.)—see https://www.gnu.org/software/emacs/manual/html_node/elisp/Variable-Scoping.html for details.
From the emacs lisp manual it seems that you could also say
if you know that the code works fine with lexical binding. The manual says that you could remove cweb.elc (if present) and byte-compile; then you'll be told if the code references anything dangerous.