unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Declaring cl.el obsolete
Date: Tue, 23 Jul 2019 11:07:21 -0400	[thread overview]
Message-ID: <jwvd0i0vmfj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <jwva7fd6fhx.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 22 May 2019 23:26:39 -0400")

> cl-lib was released 6 years ago and its uptake has been much more successful
> than in my wildest dreams.
> AFAIK it has been technically obsolete already for the last 6 years, in
> that everything it offers is provided by cl-lib or lexical-binding.

In the ensuing discussions, there have been the following objections:
1- Eli doesn't like using "obsolete" and would prefer "deprecated".
2- Lars pointed out that `cl` is still in fairly wide use outside of Emacs.
3- Ken explained that he prefers the non-prefixed names.

Regarding (3), I know several people feel that way, and that's a valid
preference, but I see no reason why the `cl` package satisfying this
preference needs to be distributed with Emacs.

Regarding (2), I pointed out that I don't foresee `cl` disappearing
completely any time soon.  Instead, it will likely move to GNU ELPA when
we finally remove it from Emacs.

As for (1), I used the word "deprecated".

So any remaining objection to the patch below?


        Stefan


diff --git a/etc/NEWS b/etc/NEWS
index 5378e56bca..00c076a18e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -485,6 +485,8 @@ current and the previous or the next line, as before.
 \f
 * Changes in Specialized Modes and Packages in Emacs 27.1
 
+** The 'cl' package is now officially deprecated in favor of `cl-lib`.
+
 +++
 ** winner
 *** A new variable, `winner-boring-buffers-regexp', has been added.
diff --git a/lisp/emacs-lisp/cl.el b/lisp/obsolete/cl.el
similarity index 99%
rename from lisp/emacs-lisp/cl.el
rename to lisp/obsolete/cl.el
index 71be1d1b49..417c757ed5 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/obsolete/cl.el
@@ -3,6 +3,7 @@
 ;; Copyright (C) 2012-2019 Free Software Foundation, Inc.
 
 ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
+;; Deprecated-since: 27.1
 ;; Keywords: extensions
 
 ;; This file is part of GNU Emacs.
diff --git a/lisp/subr.el b/lisp/subr.el
index f1a4e8bb29..e7f40e1cf5 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -4445,7 +4445,7 @@ do-after-load-evaluation
            (package (intern (substring file 0
 			               (string-match "\\.elc?\\>" file))
                             obarray))
-	   (msg (format "Package %s is obsolete" package)))
+	   (msg (format "Package %s is deprecated" package)))
       ;; Cribbed from cl--compiling-file.
       (when (or (not (fboundp 'byte-compile-warning-enabled-p))
                 (byte-compile-warning-enabled-p 'obsolete package))




  parent reply	other threads:[~2019-07-23 15:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-23  3:26 Declaring cl.el obsolete Stefan Monnier
2019-05-23  4:47 ` Eli Zaretskii
2019-05-23 10:28   ` Noam Postavsky
2019-05-23 14:20     ` Eli Zaretskii
2019-05-24 14:28       ` Stefan Monnier
2019-05-24 15:03         ` Eli Zaretskii
2019-05-24 16:22           ` Stefan Monnier
2019-05-23  8:44 ` Lars Ingebrigtsen
2019-05-23  8:50   ` Lars Ingebrigtsen
2019-05-23 17:03     ` Romanos Skiadas
2019-05-24  1:22       ` 조성빈
2019-05-25 20:12         ` Romanos Skiadas
2019-05-23 12:15   ` Stefan Monnier
2019-05-23 15:08   ` Ken Olum
2019-05-23 15:57     ` Sam Steingold
2019-07-23 15:07 ` Stefan Monnier [this message]
2019-07-23 16:29   ` Drew Adams
2019-07-23 16:55     ` Stefan Monnier
2019-08-06  8:02   ` 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=jwvd0i0vmfj.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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).