purescript-mode icon indicating copy to clipboard operation
purescript-mode copied to clipboard

purescript-indentation.el: improve compiler visibility into local variables

Open Hi-Angel opened this issue 1 year ago • 0 comments

Turning on lexical-binding fixes a bunch of warnings like:

purescript-indentation.el:399:47: Warning: ‘pi’ is an obsolete variable (as of 23.3); use ‘float-pi’ instead.

these warnings are caused by Emacs not being able to determine that pi is actually a local variable. By making use of lexical binding we make Emacs to be able to see through that.

Hi-Angel avatar Sep 12 '24 15:09 Hi-Angel