From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Thibaut Verron <thibaut.verron@gmail.com>
Cc: Jean-Christophe Helary <lists@traduction-libre.org>,
help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Package cl is deprecated
Date: Wed, 28 Jul 2021 21:36:35 +0800 [thread overview]
Message-ID: <CAGP6POJYdZv814T1oj7brpYPZsVQkPCjt9z8JLibPeP00VMiwA@mail.gmail.com> (raw)
In-Reply-To: <CAGP6POLPqs8X60LoQd9=1i10VEZVx+k+osg6ErErvG8yH5TDng@mail.gmail.com>
On Wed, Jul 28, 2021 at 9:33 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Wed, Jul 28, 2021 at 9:23 PM Thibaut Verron <thibaut.verron@gmail.com> wrote:
> >
> >
> > On 28/07/2021 15:03, Hongyi Zhao wrote:
> > > On Wed, Jul 28, 2021 at 6:04 PM Jean-Christophe Helary
> > > <lists@traduction-libre.org> wrote:
> > >>
> > >>
> > >>> On Jul 28, 2021, at 18:54, Thibaut Verron <thibaut.verron@gmail.com> wrote:
> > >>>
> > >>> On 28/07/2021 11:46, Hongyi Zhao wrote:
> > >>>> On Wed, Jul 28, 2021 at 5:33 PM Thibaut Verron <thibaut.verron@gmail.com> wrote:
> > >>>>> On 28/07/2021 11:23, Hongyi Zhao wrote:
> > >>>>>> When I start Emacs, I always notice the following message in *Messages* buffer:
> > >>>>>>
> > >>>>>> Package cl is deprecated
> > >>>>>>
> > >>>>>> Any hints for eliminating it?
> > >>>>> If you have (require 'cl) somewhere in your init file, replace it with
> > >>>>> (require 'cl-lib). You might need to change some macro calls to use
> > >>>>> cl-<name> instead of <name>.
> > >>>> $ egrep 'require[ ]*'\''cl' .emacs.d/init.el
> > >>>> (require 'cl-lib)
> > >>> Then it's from a package and you need to identify it.
> > >>>
> > >>> You can try (untested):
> > >>>
> > >>> find .emacs.d/ -name "*.el" -exec grep "(require 'cl)" {} \;
> > >> find .emacs.d/ -name "*.el" -exec grep "(require 'cl)" {} \; -print
> > > There are so many matches:
> > >
> > > $ find .emacs.d/ -name "*.el" -exec grep -q "(require 'cl)" {} \;
> > > -print 2>/dev/null | sort -u | wc -l
> > > 40
> > >
> > > So this method is basically useless for finding the problem.
> >
> > I just tried it, indeed quite a few packages contain some form of
> > (require 'cl) as a backward-compatibility tool (52 matches in my case).
> > Most of those are test files which are never loaded in a normal emacs
> > session.
> >
> > To narrow the search, you can use egrep -q "^\(require 'cl\)" instead.
> > In my .emacs, the matches go from 52 to 15. Interestingly enough,
> > exactly one of them is loaded at init time (key-combo.el), without any
> > warning.
>
> Strange, I found nothing with this enhanced pattern:
>
> $ find .emacs.d/ -type f -name "*.el" -exec grep -q "^[ ]*\([
> ]*require[ ]+'cl[ ]*\)" {} \; -print | wc -l
> 0
Sorry, egrep should be used:
$ find .emacs.d/ -type f -name "*.el" -exec egrep -q "^[ ]*\([
]*require[ ]+'cl[ ]*\)" {} \; -print | egrep -v '[/]tests?[/]'
.emacs.d/straight/repos/dash.el/dash.el
.emacs.d/straight/repos/dash.el/dev/examples.el
.emacs.d/straight/repos/stardiviner-sdcv.el/sdcv.el
.emacs.d/straight/repos/showtip/showtip.el
.emacs.d/straight/repos/unicode-escape.el/unicode-escape.el
.emacs.d/straight/repos/use-package/use-package-tests.el
.emacs.d/straight/repos/macrostep/lib/cl-lib.el
.emacs.d/straight/repos/macrostep/lib/ert.el
.emacs.d/straight/repos/emacs-websocket/websocket-functional-test.el
.emacs.d/straight/repos/s.el/dev/ert.el
Regards,
HY
next prev parent reply other threads:[~2021-07-28 13:36 UTC|newest]
Thread overview: 101+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-28 9:23 Package cl is deprecated Hongyi Zhao
2021-07-28 9:28 ` Jean Louis
2021-07-28 9:33 ` Thibaut Verron
2021-07-28 9:46 ` Hongyi Zhao
2021-07-28 9:54 ` Thibaut Verron
2021-07-28 10:03 ` Jean-Christophe Helary
2021-07-28 11:20 ` Leo Butler
2021-07-28 13:41 ` Hongyi Zhao
2021-07-28 13:56 ` Eli Zaretskii
2021-07-28 14:07 ` Hongyi Zhao
2021-07-28 14:21 ` Leo Butler
2021-07-28 14:48 ` Hongyi Zhao
2021-07-28 18:26 ` Eli Zaretskii
2021-07-29 2:18 ` Hongyi Zhao
2021-07-29 6:17 ` Eli Zaretskii
2021-07-29 7:22 ` Hongyi Zhao
2021-07-28 18:31 ` Eli Zaretskii
2021-07-29 2:27 ` Hongyi Zhao
2021-07-29 6:16 ` Eli Zaretskii
2021-07-29 14:26 ` [External] : " Drew Adams
2021-07-30 3:04 ` Hongyi Zhao
2021-07-30 4:03 ` Drew Adams
2021-07-30 5:33 ` Hongyi Zhao
2021-07-30 15:56 ` Drew Adams
2021-07-31 0:35 ` Hongyi Zhao
2021-07-31 0:58 ` Hongyi Zhao
2021-07-31 21:15 ` Drew Adams
2021-07-31 22:39 ` Michael Heerdegen
2021-07-31 22:59 ` Drew Adams
2021-08-01 1:42 ` Hongyi Zhao
2021-08-01 1:41 ` Hongyi Zhao
2021-07-31 1:34 ` Michael Heerdegen
2021-07-31 4:06 ` Hongyi Zhao
2021-07-31 4:39 ` Michael Heerdegen
2021-07-31 5:18 ` Hongyi Zhao
2021-07-31 5:26 ` Hongyi Zhao
2021-07-31 21:09 ` Drew Adams
2021-08-01 1:36 ` Hongyi Zhao
2021-08-01 2:28 ` Drew Adams
2021-08-01 2:46 ` Hongyi Zhao
2021-08-01 2:49 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-31 1:04 ` Hongyi Zhao
2021-07-31 21:14 ` Drew Adams
2021-08-01 1:55 ` Hongyi Zhao
2021-08-01 2:30 ` Drew Adams
2021-08-01 4:13 ` Hongyi Zhao
2021-08-01 5:16 ` Drew Adams
2021-08-01 23:58 ` Michael Heerdegen
2021-08-02 0:50 ` Hongyi Zhao
2021-08-02 1:10 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 1:16 ` Michael Heerdegen
2021-08-02 1:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 2:05 ` Hongyi Zhao
2021-08-02 2:23 ` Michael Heerdegen
2021-08-02 2:25 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 2:24 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 2:42 ` Hongyi Zhao
2021-08-02 3:28 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 3:57 ` Michael Heerdegen
2021-08-02 19:50 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 4:29 ` Hongyi Zhao
2021-08-02 19:53 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 21:05 ` gnutls and `erc-tls' (was: Re: [External] : Re: Package cl is deprecated) Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 22:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-03 1:16 ` [External] : Re: Package cl is deprecated Hongyi Zhao
2021-08-03 1:29 ` Drew Adams
2021-08-03 1:31 ` Hongyi Zhao
2021-08-03 1:36 ` Drew Adams
2021-08-03 1:59 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 21:33 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-08-03 1:14 ` Hongyi Zhao
2021-08-03 3:56 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-08-02 1:03 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-02 1:46 ` Michael Heerdegen
2021-08-02 2:18 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-01 4:23 ` Michael Heerdegen
2021-08-01 4:58 ` Hongyi Zhao
2021-08-01 5:08 ` Hongyi Zhao
2021-08-01 5:45 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-01 5:56 ` Hongyi Zhao
2021-08-01 6:29 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-01 6:36 ` Hongyi Zhao
2021-08-01 7:15 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-01 7:57 ` Hongyi Zhao
2021-08-01 13:23 ` Hongyi Zhao
2021-07-30 19:59 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-07-28 13:03 ` Hongyi Zhao
2021-07-28 13:23 ` Thibaut Verron
2021-07-28 13:33 ` Hongyi Zhao
2021-07-28 13:36 ` Hongyi Zhao [this message]
2021-07-28 14:04 ` Thibaut Verron
2021-07-28 14:15 ` Hongyi Zhao
2021-07-28 14:23 ` Thibaut Verron
2021-07-28 14:25 ` Thibaut Verron
2021-07-28 14:30 ` Hongyi Zhao
2021-07-28 14:36 ` [External] : " Drew Adams
2021-07-28 14:55 ` Hongyi Zhao
2021-07-29 15:26 ` Arthur Miller
2021-07-30 2:23 ` Hongyi Zhao
2021-07-28 18:11 ` Marcin Borkowski
2021-07-29 2:38 ` Hongyi Zhao
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=CAGP6POJYdZv814T1oj7brpYPZsVQkPCjt9z8JLibPeP00VMiwA@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=lists@traduction-libre.org \
--cc=thibaut.verron@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 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.