From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Declaring cl.el obsolete Date: Tue, 23 Jul 2019 11:07:21 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="225786"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 23 17:07:36 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpwO8-000wci-Az for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2019 17:07:36 +0200 Original-Received: from localhost ([::1]:44808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpwO7-0006AF-Bc for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2019 11:07:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40971) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpwO0-0006A8-9w for emacs-devel@gnu.org; Tue, 23 Jul 2019 11:07:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpwNz-0003Ms-2F for emacs-devel@gnu.org; Tue, 23 Jul 2019 11:07:28 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10236) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hpwNy-0003Jf-PU for emacs-devel@gnu.org; Tue, 23 Jul 2019 11:07:26 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D051F100944; Tue, 23 Jul 2019 11:07:23 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 70509100543; Tue, 23 Jul 2019 11:07:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1563894442; bh=K3kNV81V78qiKS/PJ4RDOwvCbM0n54OOKEa5Pf99qwc=; h=From:To:Subject:References:Date:In-Reply-To:From; b=EHPlZ0f1zOF+KmwCiXB4PdBqsGP3LoK+NcJxcnI2q1cJU5xJazwt8ppKRCZd8tXlZ bdELbbzYEV/xjqbWG/2KmdgSdfwt8KTv8Y2qX53jVZqWFV+gaFT8x3Zzw4Tl3qNmMV pO89TcTC4QsitGZBIy1XoC948947SlwNZQv9+mjvsS3ItK1vPRIr9WN1jZReeA3rL4 xL4tqMQeXk1kf0M5edFt9FLV/RCgKsx2Iymer8FH35npS3Swki6ejlZeIY+4w4EJHU FUb111345YggT8yBXsiX3Syxge/nYAXNU8ZZEqjIUV5yknJ/ltSe5WGHMahFsbC0LW 3FbTQydBTfTFQ== Original-Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 50D03120846; Tue, 23 Jul 2019 11:07:22 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Wed, 22 May 2019 23:26:39 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238845 Archived-At: > 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. * 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 +;; 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))