From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt Newsgroups: gmane.emacs.devel Subject: Re: Lisp files that load cl-lib in problematical ways Date: Sat, 21 Oct 2023 17:17:24 +0200 Message-ID: <64027fc9-0b02-4805-ae4b-4171dc06705f@vodafonemail.de> References: <87il8betof.fsf@dataswamp.org> <83fs3dgxv8.fsf@gnu.org> <835y38qvlg.fsf@gnu.org> <87bkcx6eci.fsf@dataswamp.org> <83ttqnm4ti.fsf@gnu.org> <87r0lqoo5x.fsf@dataswamp.org> <83msweu76j.fsf@gnu.org> <87o7gungi1.fsf@dataswamp.org> <83y1fxss9j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17140"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 21 17:18:36 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 1quDkK-0004IN-D8 for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Oct 2023 17:18:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quDji-0006Vf-BZ; Sat, 21 Oct 2023 11:17:58 -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 1quDjg-0006V6-Ty for emacs-devel@gnu.org; Sat, 21 Oct 2023 11:17:56 -0400 Original-Received: from mr6.vodafonemail.de ([145.253.228.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quDjc-0000Wv-D1; Sat, 21 Oct 2023 11:17:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1697901459; bh=eFk0FtTPSWhR9833L9OoHbP5JPDMFQNHfcPWpM0LgbQ=; h=Message-ID:Date:User-Agent:Subject:To:References:From: Content-Language:In-Reply-To:Content-Type:From; b=iArDwlY+234n4SLTSZRN6n81sJSr5KqdWm9tQK1Rzb27IR3bevjf0Z0Gg8qCebZav Ea9Jhw22u8olk/GQa/GE1WuWDKrX9kIMEVjlOEvlUVcrka0fE4/VUZJxvBM/OuawPy 4v1oEMY5MlmwzMBZZVv0uwKj0TliL1JydmXa5Fo4= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr6.vodafonemail.de (Postfix) with ESMTPS id 4SCQ774d4Jz1y1C; Sat, 21 Oct 2023 15:17:39 +0000 (UTC) Original-Received: from [192.168.178.41] (port-92-194-212-157.dynamic.as20676.net [92.194.212.157]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4SCQ702VjBz9sRF; Sat, 21 Oct 2023 15:17:29 +0000 (UTC) Content-Language: de-DE-frami, en-US In-Reply-To: <83y1fxss9j.fsf@gnu.org> X-purgate-type: clean X-purgate: clean X-purgate-size: 910 X-purgate-ID: 155817::1697901455-99FF87FF-786F7A58/0/0 Received-SPF: pass client-ip=145.253.228.166; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr6.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:311653 Archived-At: On 2023-10-20 08:49, Eli Zaretskii wrote: > For Emacs to preload unnecessary stuff is unclean, and we try to avoid > that uncleanliness. I have to admit that I don't fully understand the dump/bootstrap logic of Emacs (yet), but doesn't inhibit the following test in Frequire already any/most uncleanliness: /* This is to make sure that loadup.el gives a clear picture of what files are preloaded and when. */ if (will_dump_p () && !will_bootstrap_p ()) { /* Avoid landing here recursively while outputting the backtrace from the error. */ gflags.will_dump_ = false; error ("(require %s) while preparing to dump", SDATA (SYMBOL_NAME (feature))); } At least that error fires during dump ("Dump mode: pdump") when I try to require, for example, cl-lib from a file loaded from loadup.el.