From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Package cl is deprecated Date: Wed, 28 Jul 2021 21:03:03 +0800 Message-ID: References: <01eaf257-1142-c407-c9c0-0d6a2e3148b1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18982"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Thibaut Verron To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 28 15:03:47 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8jDt-0004e4-Tq for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 15:03:45 +0200 Original-Received: from localhost ([::1]:46230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8jDs-0001D4-SR for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 09:03:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8jDU-0001AA-HS for help-gnu-emacs@gnu.org; Wed, 28 Jul 2021 09:03:20 -0400 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:34388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8jDT-0000rD-01 for help-gnu-emacs@gnu.org; Wed, 28 Jul 2021 09:03:20 -0400 Original-Received: by mail-lj1-x232.google.com with SMTP id f12so3008107ljn.1 for ; Wed, 28 Jul 2021 06:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KGAonTrNSw0IyVd0ogI8JUEZrHdXidFcz1G7n135chI=; b=FI25HFILsX1YuX/lB1LwQ/n49OGx/adWn1Q0/GtbA7QfHcQJUHdksSbO53nw7LNbXd mt8dQfXrpfOhdZNv1PlGXS8CQBnXs16oC5QAA4yXXO2Q4htrweV2uYV9NPj3LWwpCBqJ cvtq43k8seN1kuT97f/vlEdvL+nAKBNdHOT+kU1yYgFFdenoCrJB3SkbTkgp9Wuw1jM+ W8oLhXXDJ6SRvDprKwWB4hqDSShqoGxw0cs6q/dWCHXSQlriapcjqCdNjgDRBzZqw2fj a9f7gM9W79TjJbr4jWdALBijN+DGWkwT3t2qgRddLUR35e0msQRbviZ7f8m0UzkSC7F2 x05A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KGAonTrNSw0IyVd0ogI8JUEZrHdXidFcz1G7n135chI=; b=XGiYAETvKs5tcxF2VWaIBiO9UY4TazWLLvou3XTNDvbMO0GcaWzdmCjamKDwrZtR7J h1hy7bApCABNJAAwvIwXpF2QTuZLZ/T8S6+3H1y37GIt3l2z4yYnOA/66QvHqTIzkopl 1U7y4n/BN7LfWm5pfzqRJa0vzZbuO1rxQitECj04rS2hCnuZ+gzGsbtyWm54Jb9QqXRk +EFxfcggI/vtMTq0YHjlm+sVAgMUEWci7VSk8CU11J0VZoy3WRkqBLieVgFqsKvH8CkA FyL7eUx9vlrJSsAkdOeWJUtkXVjVqCdvyzgz6/Jmva/AZPGu6W3Jj5FpAjVU7BNWiaoq nqXw== X-Gm-Message-State: AOAM531jFH7HI16OBK5PelyIQRqGVFMr0TtIDJ87Zf8MStd8Nf1Zmeag 7kp1R/BDXMrBTX69whQpk8NQXLP+EQJ3BbYiC1A= X-Google-Smtp-Source: ABdhPJz2k0oPDOgWFBO7JAiXBUb83O6TCqPhtwYmIT0+eAJJn8TE2T2SKCKyCjikTSMzC5KQv6Scw2ywq46xTOWrl0Y= X-Received: by 2002:a2e:bd0c:: with SMTP id n12mr18602061ljq.447.1627477395851; Wed, 28 Jul 2021 06:03:15 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x232.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132143 Archived-At: On Wed, Jul 28, 2021 at 6:04 PM Jean-Christophe Helary wrote: > > > > > On Jul 28, 2021, at 18:54, Thibaut Verron wrote: > > > > On 28/07/2021 11:46, Hongyi Zhao wrote: > >> On Wed, Jul 28, 2021 at 5:33 PM Thibaut Verron 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- instead of . > >> $ 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. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province