unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Philipp Stephani <p.stephani2@gmail.com>, 20640@debbugs.gnu.org
Subject: bug#20640: 24.5; lexical-binding should work like a normal file-local variable
Date: Mon, 25 May 2015 21:06:47 -0400	[thread overview]
Message-ID: <tn7frwp2oo.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwvtwv0b73f.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Mon, 25 May 2015 18:55:50 -0400")

Stefan Monnier wrote:

>>> Allowing it at the end of the file, would require jumping to the end of
>>> the file first, and then starting over from the beginning.
>>> That'd be a very bad requirement.
>> Why? We're going to have to read that page eventually anyway.
>
> Because we can't read the first page correctly until we know whether it
> should be read in lexical-binding mode or in dynamic-binding mode.

A few years ago, we said (IIUC) it was desirable:

http://debbugs.gnu.org/10605
http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00543.html

Or have speed-ups in uncompiled code shifted the balance?

(But no-one shows any sign of doing anything, so it's all academic.)





  reply	other threads:[~2015-05-26  1:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-24 10:19 bug#20640: 24.5; lexical-binding should work like a normal file-local variable Philipp Stephani
2015-05-25  1:59 ` Stefan Monnier
2015-05-25 20:33   ` Daniel Colascione
2015-05-25 22:55     ` Stefan Monnier
2015-05-26  1:06       ` Glenn Morris [this message]
2015-05-26 17:12         ` Stefan Monnier
2015-05-26 20:53           ` Glenn Morris
2015-05-27  1:49             ` Stefan Monnier
2015-06-21 20:08               ` Philipp Stephani
2015-06-22 15:56                 ` Stefan Monnier
2016-09-11 18:04                   ` Philipp Stephani
2016-09-11 19:25                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tn7frwp2oo.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=20640@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).