unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: tgbugs@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [PATCH] hack-one-local-variable use lexical-binding
Date: Sun, 29 Nov 2020 17:42:28 +0200	[thread overview]
Message-ID: <83wny4kw4b.fsf@gnu.org> (raw)
In-Reply-To: <CADwFkmk+fun1xb1eCgkZ_5UtSqd1-E35mY_5V3Jb+18wR4JqNA@mail.gmail.com> (message from Stefan Kangas on Sun, 29 Nov 2020 03:43:04 -0600)

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Sun, 29 Nov 2020 03:43:04 -0600
> Cc: tgbugs@gmail.com, emacs-devel@gnu.org
> 
> Once we use lexical-binding t by default in all other cases, it would be
> surprising for it to default to nil in this case.

Once lexical-binding becomes t by default, 'eval' will use
lexical-binding.

> For me, the most important thing is therefore to have a clear idea
> how we can make file local `eval' use lexical-binding by default at
> some point in the future.

My idea is to make it do that by default when lexical-binding is t by
default; until then, if someone wants that in file-local variables, he
or she can use a special construct.

IOW, this change will be a backward-incompatible one no matter what we
do.  IMO, it makes much more sense to make such a change when we
switch to lexical-binding by default rather than now.

> If Eli insists that we can't make this backwards incompatible change
> now, I would suggest instead to introduce `non-lexical-eval' or
> `dynamic-eval' and document that any use of plain `eval' that relies on
> lexical-binding nil is now deprecated.

I don't mind introducing dynamic-eval if people think it could be of
use.  I don't think it's a must, but I won't object to it.



  reply	other threads:[~2020-11-29 15:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-26  2:55 [PATCH] hack-one-local-variable use lexical-binding Tom Gillespie
2020-11-26  3:07 ` Stefan Monnier
2020-11-26  4:47   ` Tom Gillespie
2020-11-26  7:16     ` Eli Zaretskii
2020-11-26 14:21       ` Stefan Monnier
2020-11-26 14:44         ` Eli Zaretskii
2020-11-29  4:12           ` Tom Gillespie
2020-11-29  9:43           ` Stefan Kangas
2020-11-29 15:42             ` Eli Zaretskii [this message]
2020-11-29 19:50               ` Tom Gillespie
2020-11-29 20:38                 ` Stefan Monnier

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=83wny4kw4b.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stefankangas@gmail.com \
    --cc=tgbugs@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).