From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Screenshots, frame shots straight from Emacs Date: Tue, 20 Jul 2021 17:48:45 -0400 Message-ID: References: <87sg1dgbbk.fsf@omarpolo.com> <87pmwhg843.fsf@omarpolo.com> <8735t96mxj.fsf@omarpolo.com> <87pmw961ox.fsf@zoho.eu> <874kcpxln9.fsf@logand.com> <87pmvcdgqg.fsf@t14.reltub.ca> <87a6mgwz17.fsf@logand.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18579"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:mmcek8dVKwQKL7tJiBNC+sG4Rgc= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 20 23:49:36 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 1m5xcO-0004iG-4r for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 23:49:36 +0200 Original-Received: from localhost ([::1]:47980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5xcN-00087r-0t for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 17:49:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5xbm-000814-8b for help-gnu-emacs@gnu.org; Tue, 20 Jul 2021 17:48:58 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:41236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5xbk-0007g9-DI for help-gnu-emacs@gnu.org; Tue, 20 Jul 2021 17:48:58 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m5xbg-0003so-PG for help-gnu-emacs@gnu.org; Tue, 20 Jul 2021 23:48:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:131902 Archived-At: >> -(require 'cl) >> +(require 'cl-lib) > What is the difference? They provide the same features but under different names (i.e. the above change should generally come with other changes to adjust to the different names; they seemed to be missing from the patch). E.g. `cl` provides `position` and `mapcar*` whereas `cl-lib` provides `cl-position` and `cl-mapcar`. All the functions/macros/variables exported by `cl-lib` use the `cl-` prefix. [ Note that in Emacsā‰„24.3, `(require 'cl)` will require `cl-lib` under the hood (and then re-export its functions under the old name), and the reverse holds for Emacs<24.3 if you use the forward compatibility `cl-lib` package from GNU ELPA. So loading `cl` may also sometimes end up defining the `cl-` functions, and loading `cl-lib` may also sometimes define the "not cl-" functions. ] > Why is that needed? Because `cl` is deprecated. > Is it it backward compatible? Featurewise, almost. But it does require code changes (mostly adding `cl-` prefixes). > There have been changes to working with cl package for some time, has > the dust settled yet? AFAIK the dust settled back when Emacs-24.3 was released with `cl-lib`. `cl-lib` was slated to (slowly) replace `cl`. In the upcoming Emacs-28, `cl` is officially deprecated (tho still fully supported). In some future release the plan is to remove `cl` from Emacs itself, tho we may then create a GNU ELPA package for it. IOW, there's no hurry, but moving packages away from `cl` is recommended (as is the conversion to use `lexical-binding`: all files bundled with Emacs-28 use `lexical-binding`). Stefan