all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: Dave Abrahams <dave@boostpro.com>, emacs-devel@gnu.org
Subject: Re: lexical-binding rationale?
Date: Fri, 13 Jan 2012 21:30:44 -0500	[thread overview]
Message-ID: <jwvr4z381pp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <tzkdshw9y.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 13 Jan 2012 02:55:05 -0500")

>> The intention is that it should work like any other file-local setting
>> so it can go in the end as well, but I haven't checked that
>> lisp_file_lexically_bound_p handles that cases correctly.
> Just from looking at it, it sure looks like it doesn't.

Hmm... indeed!

I guess lisp_file_lexically_bound_p should largely be rewritten by
moving it to load-with-code-conversion/load-source-file-function.
This said, now that I see the code it's clear that if we care about the
performance of loading .el (i.e. uncompiled) files, then we should force
lexical-binding to be on the first line.  Of course, currently it looks
like we don't care about this performance (that's probably the reason
why people have started to see a real speed up when compiling their
.emacs file), but if we want to be able to change our minds, we'd better
impose the restriction right away because afterwards will be too late.


        Stefan



  reply	other threads:[~2012-01-14  2:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12 16:47 lexical-binding rationale? Dave Abrahams
2012-01-12 18:01 ` Alan Mackenzie
2012-01-12 18:50   ` Dave Abrahams
2012-01-12 18:49     ` Alan Mackenzie
2012-01-12 20:51 ` Glenn Morris
2012-01-12 22:00   ` Stefan Monnier
2012-01-13  7:55     ` Glenn Morris
2012-01-14  2:30       ` Stefan Monnier [this message]
2012-01-13  5:17 ` Richard Stallman
2012-01-13 15:28   ` Dave Abrahams
2012-01-13 18:37     ` Stefan Monnier
2012-01-13 19:19       ` Dave Abrahams
2012-01-14  0:59     ` Ted Zlatanov

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

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

  git send-email \
    --in-reply-to=jwvr4z381pp.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dave@boostpro.com \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.