all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Deprecating 'lexical-binding: nil'
Date: Mon, 27 Sep 2021 18:35:39 -0400	[thread overview]
Message-ID: <E1mUzDn-0005H8-B1@fencepost.gnu.org> (raw)
In-Reply-To: <CADwFkmkDC1S2RFXPS5uhcGFVgo0xzzMx+FEAgAgX8t9a3GHOBQ@mail.gmail.com> (message from Stefan Kangas on Sat, 25 Sep 2021 15:47:45 -0700)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

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.

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 like Stefan's proposal for the approach for doing that:

      > The plan for phasing out 'lexical-binding:nil' is as follows:

      > Emacs 28.1 - The byte-compiler warns if there is no 'lexical-binding'
      >              cookie.

      > Emacs 30.1 - The byte-compiler warns if there is no 'lexical-binding'
      >              cookie, or if the cookie is 'lexical-binding:nil'.

      > Emacs 32.1 - The warnings remain as before, and 'lexical-binding:t' is
      >              the default.

One good thing is that this plans for it to take many years.  It took
us 10 years to switch in Emacs, and we are to some extent organized.
The user community is not organized and will not be quick to switch.

Another is that there will be two stages of warnings, proposed here
for Emacs 28 and Emacs 30.  Each warning will convince some users to
switch, so two warning stages are better than one.

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

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





  parent reply	other threads:[~2021-09-27 22:35 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 ` Richard Stallman [this message]
2021-09-27 23:09   ` Deprecating 'lexical-binding: nil' Stefan Kangas
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

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

  git send-email \
    --in-reply-to=E1mUzDn-0005H8-B1@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stefan@marxist.se \
    /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.