unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Po Lu" <luangruo@yahoo.com>,
	"Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: "66636@debbugs.gnu.org" <66636@debbugs.gnu.org>
Subject: bug#66636: Move lexical-binding warning from checkdoc to byte-compiler
Date: Fri, 20 Oct 2023 16:27:48 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488F5E9D4DC4434A3B86DB9F3DBA@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87ttql4yfq.fsf@yahoo.com>

> There exist many packages which do not enable
> lexical binding, whose authors have studiously
> elected not to: most of Drew Adams' for example.

Only because they are old or intended to
support also old Emacs releases.

I'm on record from Day One as _favoring_
the approach of Common Lisp (and now
Elisp) of lexical binding by default and
dynamic binding for variable declared as
special.

> So this is tantamount to punitive action
> against their users, in the form of an
> unsightly warning each time such
> packages are installed.

I can't speak for anyone else, obviously,
but for my part such warnings don't
particularly bother me for my libraries.

On the other hand, it's not clear to me
why we would have warnings other than for
byte-compiling.  (I just haven't been
following this - there might be a good
reason; dunno.)

The one thing that does bother me about
the change to what I prefer (lexical by
default) is the outright _removal_ of
`lexical-let[*]'.  This is really a
bother.  Code can be complex, and for a
library that has several uses of this
macro it's not necessarily simple to
modify it to use only (lexical) `let[*]'.

IMHO, it should have been (still should
be) possible to keep support for
`lexical-let[*]' around for much longer
- maybe forever.  It should be enough
to tell users not to use it for new code,
and why.
___

In _general_, I'm not crazy about Emacs
removing things, no matter how old or
deprecated.  If their code path isn't
used it should be no bother, especially
if it's relatively separate from other
code paths.

Deprecation alone generally means (1)
the thing is still supported but (2)
it's not enhanced.  And it would be
tolerable if deprecation even meant no
bug fixes.

An overeager-beaver impetus to _remove_
features is generally misguided, IMO.
But yeah, I'm not maintaining Emacs, so
this is easy for me to say.  (Just one
opinion.)

      parent reply	other threads:[~2023-10-20 16:27 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-19 11:48 bug#66636: Move lexical-binding warning from checkdoc to byte-compiler Mattias Engdegård
2023-10-19 11:55 ` Eli Zaretskii
2023-10-19 14:12   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-19 17:40 ` Stefan Kangas
2023-10-20 10:15   ` Mattias Engdegård
2023-10-20 20:55     ` Stefan Kangas
2023-10-20  6:09 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-20  7:01   ` Eli Zaretskii
2023-10-20  7:13     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-20  7:21       ` Eli Zaretskii
2023-10-20 19:44         ` Stefan Kangas
2023-10-20 13:38   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-20 17:40     ` Mattias Engdegård
2023-10-20 19:27       ` Eli Zaretskii
2023-10-21  9:53         ` Mattias Engdegård
2023-10-21 11:17           ` Eli Zaretskii
2023-10-21 13:17             ` Mattias Engdegård
2023-10-21 14:42             ` Drew Adams
2023-10-21 15:44             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-21 16:08               ` Eli Zaretskii
2023-10-22  0:15               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-22  4:12                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-22  5:16                   ` Eli Zaretskii
2023-10-22  5:28                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-20 16:27   ` Drew Adams [this message]

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=SJ0PR10MB5488F5E9D4DC4434A3B86DB9F3DBA@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=66636@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=mattias.engdegard@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).