Subject: 24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list

From: Christopher Schmidt <[email-masked]>
Date: Thu, 26 Jul 2012 00:45:43 +0100 (BST)

lisp_file_lexically_bound_p does not handle local variables lists.  This
will make eval-buffer ignore the file-local value of lexical-binding if
it is specified in such a list.

Recipe: emacs -q, C-x b *scratch* RET, insert the following snippet, M-x
eval-buffer RET, M-: (rms) RET.

    (defun rms ()
      (let ((emacs 'vim-tiny))
        (lambda ())))

    ;; Local Variables:
    ;; lexical-binding: t
    ;; End:

        Christopher