jschaf / esup

ESUP - Emacs Start Up Profiler
400 stars 21 forks source link

Evaluate using lexical-binding if the file is lexically scoped #91

Open phikal opened 3 years ago

phikal commented 3 years ago

I have code in my init.el that requires lexical scoping, and it could not be evaluated correctly without passing setting lexical when calling eval.

This patch uses the buffer-local value of lexical-binding to invoke eval correctly.

phikal commented 3 years ago

And as a side note, while debugging I ended up simplifying the code a bit, but there too many changes to make a clean sequence of commits. Ultimately, I just grouped them all into one big dummy commit, and if you are interested, I could extract certain changes and propose them as separate push requests.

phikal commented 2 years ago

Ping?