Subject: Re: bug#12528: 24.2; Emacs fails to use lexical-binding when run from script or in file-local variable list

From: Glenn Morris <[email-masked]>
Date: Thu, 27 Sep 2012 17:19:16 -0400

lexical-binding is not a normal file local variable and literally must
be on the first line of the file (bug#10605). This is documented, but
I guess nobody thought about Emacs scripts till now. There is no way to
make that work at present AFAICS.