GNU bug report logs - #12049
24.1.50.1; lisp_file_lexically_bound_p does not handle local variables list

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Wed, 25 Jul 2012 23:53:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.1.50.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12049 in the body.
You can then email your comments to 12049 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12049; Package emacs. (Wed, 25 Jul 2012 23:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Schmidt <christopher <at> ch.ristopher.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 25 Jul 2012 23:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1.50.1;
	lisp_file_lexically_bound_p does not handle local variables list
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12049; Package emacs. (Thu, 26 Jul 2012 01:48:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#12049: 24.1.50.1;
	lisp_file_lexically_bound_p does not handle local variables list
Date: Wed, 25 Jul 2012 21:40:08 -0400
> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12049; Package emacs. (Thu, 26 Jul 2012 01:58:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#12049: 24.1.50.1;
	lisp_file_lexically_bound_p does not handle local variables list
Date: Thu, 26 Jul 2012 02:50:59 +0100 (BST)
Stefan Monnier <monnier <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12049; Package emacs. (Sun, 29 Jul 2012 22:58:02 GMT) Full text and rfc822 format available.

Message #14 received at 12049 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 12049 <at> debbugs.gnu.org
Subject: Re: bug#12049: 24.1.50.1;
	lisp_file_lexically_bound_p does not handle local variables list
Date: Sun, 29 Jul 2012 18:49:59 -0400
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.




Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 29 Jul 2012 22:58:02 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 29 Jul 2012 22:58:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12049 <at> debbugs.gnu.org and Christopher Schmidt <christopher <at> ch.ristopher.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 27 Sep 2012 21:16:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Oct 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.