unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	 Emacs developers <emacs-devel@gnu.org>
Subject: Re: Declaring 'lexical-binding: nil' obsolete
Date: Sun, 26 Sep 2021 09:20:54 +0800	[thread overview]
Message-ID: <87wnn4uo7d.fsf@yahoo.com> (raw)
In-Reply-To: <CADwFkmnNgg-zeAWfA4wsJXOnn5mF_1SvjXe58W1jd55AANsw=A@mail.gmail.com> (Stefan Kangas's message of "Sat, 25 Sep 2021 17:50:52 -0700")

Stefan Kangas <stefan@marxist.se> writes:

> I'm sure that we will review those parts of the documentation in due
> time.  But the "blanket" (not sure why you add this word) obsoletion is
> precisely about discouraging the use of the 'lexical-binding:nil'
> dialect of Emacs Lisp.

Obsoletion is not discouragement!  Making something obsolete puts it on
the path to removal.

> If you read my proposal carefully, I hope it is clear that this
> obsoletion mostly just entails our strong recommendation.  Support for
> 'lexical-binding:nil' will need to be there for the foreseeable future.

Yes, but why would it need to be the subject of a byte-compiler warning?
Adding a warning to the byte compiler will only cause more confusion,
because the documentation doesn't suggest lexical binding in particular.

New authors of third-party code who have learned Emacs Lisp from the
Eintr will be even more confused, because the byte-compiler is directly
behaving in a way inconsistent with the documentation they learned from.

Meanwhile, if the byte compiler is left alone while the documentation is
updated to reflect the new recommendations, the situation will not be as
confusing.

> I do not include removing this feature in the plan I propose, and this
> is not by accident.

But why does the NEWS entry you have proposed include:

    Third-party code will need to be changed to support
    'lexical-binding:t' to run properly on Emacs in the future.

> (Note that we already have a warning in the mode-line.)

Perhaps it should be made more noticable, at least the first time it is
shown?  The way it is now, most people will consider it a warning, only
an indicator.



  reply	other threads:[~2021-09-26  1:20 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 [this message]
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
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=87wnn4uo7d.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --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 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).