Closed
Description
Lexical binding is available since Emacs 24 but can be used in way that is compatible with Emacs 23. Tasks to make this happen:
- Add
;;; -*- lexical-binding: t -*-
to every*.el
file. - Fix all warnings about unused lexical variables (be removing a variable or prepending underscore to its name).
- Fix all errors about undefined lexical variables (if any).
Example of current output:
In toplevel form:
haskell-modules.el:51:1:Warning: Unused lexical argument `dontcreate'
haskell-modules.el:51:1:Warning: Unused lexical argument `session'
Wrote /Users/kazu/tmp/haskell-mode/haskell-modules.elc