hlolli / csound-mode

Emacs major mode for coding in Csound
41 stars 14 forks source link

Replace let with let* to avoid free variable 'end-line' #28

Closed sohet closed 1 year ago

sohet commented 1 year ago

Emacs *Compile -Log* buffer shows,

In csound-font-lock-fontify-region:
csound-font-lock.el.orig:339:27: Warning: reference to free variable
    ‘end-line’
hlolli commented 1 year ago

nice, I'll merge, just for learning, why is it that let* fixes this, is it because of lexical scoping?

sohet commented 1 year ago

Second local variable end-line is defined using first local variable end-line. So they must be defined in lexical order by let*. But let defines local variables in indefinite order.