unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: rms@gnu.org
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Deprecating 'lexical-binding: nil'
Date: Mon, 27 Sep 2021 16:09:43 -0700	[thread overview]
Message-ID: <CADwFkmndda2nWcH8T2e-BHTj7wt6O6qT=XyHN9T2cEqzfUBdTA@mail.gmail.com> (raw)
In-Reply-To: <E1mUzDn-0005H8-B1@fencepost.gnu.org>

Richard Stallman <rms@gnu.org> writes:

> I support making lexical binding the default, eventually, but instead
> of proposing to make nonlexical binding mode obsolete (which implies
> removing it), let's stop with deprecating it.

That is fine by me, thank you.

Note that I was a bit careless in my choice of words here: the subject
said "deprecated" but the actual text said "obsolete".  I think
"deprecated" better communicates the intention here.

> To delete a mode of usage that was formerly the default would make it
> almost unfrasible to run old Lisp programs in newer Emacs versions.
>
> The changes required to make those old programs function with lexical
> binding are not simple or eash to write.  You can't find them by
> searching for certain names, as you could for many other incompatible
> changes.  In some cases, they require studying the code carefully.
>
> To avoid that, let's keep the nonlexical mode working.

I agree.  For the record, it was never my intention to suggest that we
should rush to delete 'lexical-binding:nil'.  My expectation is that it
will be phased out at some point in the future when it is no longer
really relevant.

Or maybe the future maintainers of Emacs will decide that it makes sense
to keep it around as a novelty.  You know, much like how most Unix-like
operating systems still come with vi.  ;-)

> I have no opinion about whether to take the first step in Emacs 28 or
> in Emacs 29.

Both our maintainers have said that they don't want this in Emacs 28,
and I can understand their reasoning.

We can revisit this after 28.1 has been released, and some time have
passed.  My hope is that we will be able to finally declare it
deprecated in Emacs 29.



  reply	other threads:[~2021-09-27 23:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-25 22:47 Declaring 'lexical-binding: nil' obsolete Stefan Kangas
2021-09-25 23:17 ` Po Lu
2021-09-26  0:04   ` Stefan Kangas
2021-09-26  0:13     ` Po Lu
2021-09-26  0:50       ` Stefan Kangas
2021-09-26  1:20         ` Po Lu
2021-09-26  2:37           ` Stefan Kangas
2021-09-26  2:55             ` Po Lu
2021-09-26  6:30         ` Eli Zaretskii
2021-09-26  6:08       ` Eli Zaretskii
2021-09-26  6:06     ` Eli Zaretskii
2021-09-25 23:56 ` Eduardo Ochs
2021-09-26  0:35   ` Stefan Kangas
2021-09-26  6:02 ` Eli Zaretskii
2021-09-26  6:36   ` Lars Ingebrigtsen
2021-09-27 22:35 ` Deprecating 'lexical-binding: nil' Richard Stallman
2021-09-27 23:09   ` Stefan Kangas [this message]
2021-09-28  1:42     ` Stefan Monnier
2021-09-30  6:03     ` Richard Stallman
2021-09-30 14:18       ` Steingold

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='CADwFkmndda2nWcH8T2e-BHTj7wt6O6qT=XyHN9T2cEqzfUBdTA@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@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 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).