Skip to content

quick note from Knuth #57

Description

@ascherer

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions