From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Lisp files that load cl-lib in problematical ways Date: Mon, 23 Oct 2023 20:59:16 -0400 Message-ID: References: <87il8betof.fsf@dataswamp.org> <83fs3dgxv8.fsf@gnu.org> <835y38qvlg.fsf@gnu.org> <87bkcx6eci.fsf@dataswamp.org> <8734y7p7sz.fsf@dataswamp.org> <83v8b3mcuj.fsf@gnu.org> <87zg0fnqa0.fsf@dataswamp.org> <87ttqnni9s.fsf@dataswamp.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14721"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 24 02:59:29 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 1qv5lZ-0003aw-N0 for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Oct 2023 02:59:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qv5lP-0001qj-B1; Mon, 23 Oct 2023 20:59:19 -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 1qv5lN-0001qb-VI for emacs-devel@gnu.org; Mon, 23 Oct 2023 20:59:17 -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 1qv5lM-00017c-B0; Mon, 23 Oct 2023 20:59:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=lCYE6DjJe/bExdFk30nQlMMzN7IfJ/g6hZqG3NBT3Q8=; b=fpTwmJ+a9n+a o/3SzDKNWJg/s71oOEHpn3nWcy9PThZumgL3nIietqnbGfRP4YU1MaF/JDBfFaYg6PLbou9R7sImp HuSmfQAbpJmYGwLuNulaXOlAyCI7wtO0Xjj+SW0mAW5sXaz1TzMPOWMborpLB0I5MlZzafJ7BIwEo aqrme3D/qmXQHHPqk2j+0XQLeeQn+tM93cgvYSAxynOLjp1OqTiCMqTOgIThthZjeQmrIxM+cQjHU +sdu8b6RSfV2wnPKI2pO+1Wgz1CDcAHZl6F5RVhpwzcKZ9d6jrfUnmtuJHxh07CfYdfqq4OYuhOMT 7TO83b3j47EwI388rxxcdg==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qv5lM-0004S2-1V; Mon, 23 Oct 2023 20:59:16 -0400 In-Reply-To: <87ttqnni9s.fsf@dataswamp.org> (message from Emanuel Berg on Thu, 19 Oct 2023 10:11:43 +0200) 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:311736 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > debug.el `require' cl-lib as its first line of non-comment > source, and then goes on to use it 6 times: `cl-prin1' (2), > `cl-defstruct' (1), and `cl-getf' (3). > cl-prin1 is found in cl-print.el, cl-defstruct in cl-macs.el > and cl-getf in cl-extra.el. It sounds like this should be easy to fix. I would expect that there is an important reason to call cl-prin1. But I'd expect it is easy to avoid cl-getf -- that using it struct some developer as "more elegant". As for cl-defstruct, that is a macro, so it should not be an issue really. Does this mean it would be simple to fix debug.el by writing out cl-getf, loading cl-print.el, and not requirng cl-lib? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)