* bug#12049: 24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list
@ 2012-07-25 23:45 Christopher Schmidt
2012-07-26 1:40 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Schmidt @ 2012-07-25 23:45 UTC (permalink / raw)
To: 12049
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12049: 24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list
2012-07-25 23:45 bug#12049: 24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list Christopher Schmidt
@ 2012-07-26 1:40 ` Stefan Monnier
2012-07-26 1:50 ` Christopher Schmidt
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2012-07-26 1:40 UTC (permalink / raw)
To: 12049
> lisp_file_lexically_bound_p does not handle local variables lists.
That's a known limitation, which we decided to keep since supporting
lexical-binding settings at the end of the file would force the
interpreter to read the whole file before starting interpreting.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12049: 24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list
2012-07-26 1:40 ` Stefan Monnier
@ 2012-07-26 1:50 ` Christopher Schmidt
2012-07-29 22:49 ` Glenn Morris
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Schmidt @ 2012-07-26 1:50 UTC (permalink / raw)
To: 12049
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> lisp_file_lexically_bound_p does not handle local variables lists.
>
> That's a known limitation, which we decided to keep since supporting
> lexical-binding settings at the end of the file would force the
> interpreter to read the whole file before starting interpreting.
Thanks for you answer. Is this limitation mentioned in the
documentation? If so, in which node?
Christopher
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12049: 24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list
2012-07-26 1:50 ` Christopher Schmidt
@ 2012-07-29 22:49 ` Glenn Morris
0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2012-07-29 22:49 UTC (permalink / raw)
To: 12049
Christopher Schmidt wrote:
>> That's a known limitation, which we decided to keep since supporting
>> lexical-binding settings at the end of the file would force the
>> interpreter to read the whole file before starting interpreting.
>
> Thanks for you answer. Is this limitation mentioned in the
> documentation? If so, in which node?
In the doc string of the variable lexical-binding, in the NEWS file, and
in the "Using Lexical Binding" node of the elisp manual.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-29 22:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25 23:45 bug#12049: 24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list Christopher Schmidt
2012-07-26 1:40 ` Stefan Monnier
2012-07-26 1:50 ` Christopher Schmidt
2012-07-29 22:49 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).