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: Tue, 24 Oct 2023 16:07:52 +0300 Message-ID: <83msw8kw2f.fsf@gnu.org> References: <83ttqnm4ti.fsf@gnu.org> <83lebyu5yx.fsf@gnu.org> <4684f43123d7dee59461@heytings.org> <835y2xo1a5.fsf@gnu.org> <4684f4312391906f6101@heytings.org> <831qdlo084.fsf@gnu.org> <83msw8n43r.fsf@gnu.org> <87y1fs75mx.fsf@localhost> <837cncmewi.fsf@gnu.org> <87fs209ora.fsf@localhost> <83pm14kwz0.fsf@gnu.org> <87cyx49nt2.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18119"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, gregory@heytings.org, rms@gnu.org, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 24 15:08:59 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 1qvH9X-0004RV-9s for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Oct 2023 15:08:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvH8m-0000yF-Ux; Tue, 24 Oct 2023 09:08:12 -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 1qvH8l-0000vM-FO for emacs-devel@gnu.org; Tue, 24 Oct 2023 09:08:11 -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 1qvH8k-0008DP-TW; Tue, 24 Oct 2023 09:08:10 -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=cmwIO80oG6QKlv6CRs5yEbHE22J1deRclKuzq+nxbEw=; b=MPxKbKlUaNPK r+Lf4xUfNaLphkbmGgr3qpA13KGbZqrXXLaNPgc5ldfu194cC4Fm1xn9E4f6dl12Y9zckP7viVMBw 2Rp8DYgGfGxMMnAoOHYMUqHIk+NkrQTWjFACo5TmsE/fBLgpFoCKyBldYE27A32wu6TdVie2E3vZU sBA4PJDqfvC10m+d6gxMg6cTsNdpLZwM72BwcVYu/xqhGeHhAHiOE/0SRX4JlkL5n4SCPFvyFOVJC mccE54CJqSM1lGU74+dKkzDzQzbD5kq7odUhr79UfR4baN3UOGV27uiUuHIX1Jhm9jZioviR7+pF6 BS341J4VRHe/JOghTQgJ/g==; In-Reply-To: <87cyx49nt2.fsf@localhost> (message from Ihor Radchenko on Tue, 24 Oct 2023 13:01:45 +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:311788 Archived-At: > From: Ihor Radchenko > Cc: stefankangas@gmail.com, gregory@heytings.org, rms@gnu.org, > emacs-devel@gnu.org > Date: Tue, 24 Oct 2023 13:01:45 +0000 > > > These are bugs we still need to find and fix. But adding arbitrary > > Lisp packages to loadup.el is also likely to cause bugs, since > > dumping Emacs is a tricky business in any case. > > That's my point. If we can carefully select built-in packages that can > be safely dumped, we can generate Emacs executable tailored for user > configs. > > For example, imaginary M-x dump-emacs-portable-interactively might check > the loaded features, filter them according to built-in libraries known > to be safe for dumping, and generate Emacs image that will pre-load > these libraries. This way, Emacs startup time will be reduced while not > adding unnecessary bloat, with "unnecessary" defined by the user config > rather than general considerations that must apply to every possible > Emacs user. Feel free to work on such a feature, I'm sure some will like it, especially people who for some reason start Emacs frequently. It's a lot of non-trivial work, though.