From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Lisp files that load cl-lib in problematical ways Date: Sat, 21 Oct 2023 22:00:16 +0300 Message-ID: <83bkcrrebj.fsf@gnu.org> References: <835y38qvlg.fsf@gnu.org> <87bkcx6eci.fsf@dataswamp.org> <83ttqnm4ti.fsf@gnu.org> <83lebyu5yx.fsf@gnu.org> <83a5scs9pu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 21 21:01:37 2023 Return-path: Envelope-to: ged-emacs-devel@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 1quHE8-0000Lq-Fb for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Oct 2023 21:01:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quHD4-00010W-NV; Sat, 21 Oct 2023 15:00:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quHD1-000100-6y for emacs-devel@gnu.org; Sat, 21 Oct 2023 15:00:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quHCz-0002ha-Hz; Sat, 21 Oct 2023 15:00:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GqpympCj/uYnQbFT+aAynGDQgU16L7gIkXGqFYRV9xM=; b=LDmWso2LG9Uh kRBbusMhlivX7tpbfIJCbn/GA4s3FgUWyvU/t8zx0qJziixozbFS5KSTvX0GqVbgj14WlU3Ws/2hs g4/gQ9WnyWvgxVN0WWg7gWKxD3xxD4awcPM+193/OxuR3pH/8v3dF28yTUECnq/MCmh5LSNbhk4pZ JmVbQ66EFspTz/j1BTAhHsk3Ta71PYa2NAjihfYahDRuxBDT8hk4CUiB+BkuwH/0oA56q29wcOzts ePM5eSKGG6206OExtS7DX4cj71F3lAk3Gl+H6bsxN0qVXYzkDizcryTeabux/iay2pyMlomDu6JAo amur51EJDxpG8a4YUB1noQ==; In-Reply-To: (message from Alan Mackenzie on Sat, 21 Oct 2023 17:53:31 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311659 Archived-At: > Date: Sat, 21 Oct 2023 17:53:31 +0000 > Cc: rms@gnu.org, emacs-devel@gnu.org > From: Alan Mackenzie > > Just as a matter of interest, what loads cl-lib in my .emacs is > desktop.el. It does this for a single call to cl-list* which could be > seen as rather contrived. > > So any Emacs session loading desktop will also be loading cl-lib; that's > virtually any Emacs session in which real work will be getting done, I > think. > > It would be fairly easy to remove cl-lib from desktop.el. Or, on the > other hand, we could just as well preload cl-lib, and save an > unmeasurable amount of loading time at each Emacs startup. No, we will not preload cl-lib. But if some package loads cl-lib for a small number of functions that can be easily replaced with non-cl-lib functions, patches to make such packages leaner and meaner will be welcome.