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: master 05d240997a 2/2: Add native-compile-prune-cache command Date: Fri, 22 Jul 2022 21:03:44 +0300 Message-ID: <83edydja7z.fsf@gnu.org> References: <165675959499.8421.12451308740112322312@vcs2.savannah.gnu.org> <20220702105957.4B7EFC016B5@vcs2.savannah.gnu.org> <87bkthedix.fsf@gmail.com> <877d45b8sz.fsf@gmail.com> <8735etb5e1.fsf@gmail.com> <87y1wl9n2n.fsf@gmail.com> <83ilnpjgtm.fsf@gnu.org> <87tu799mm8.fsf@gmail.com> <83h739jf3o.fsf@gnu.org> <87lesl9k1n.fsf@gmail.com> 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="5934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, emacs-devel@gnu.org, larsi@gnus.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 22 20:05:01 2022 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 1oEx1J-0001D9-09 for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 20:05:01 +0200 Original-Received: from localhost ([::1]:38892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEx1H-0000Pa-FD for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 14:04:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEx09-00087i-UG for emacs-devel@gnu.org; Fri, 22 Jul 2022 14:03:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEx09-000327-BF; Fri, 22 Jul 2022 14:03:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=UnqUHMTmb4OWSll+hjHLKYM5XH7UfyenqAj6JXXDe9I=; b=SCPHlKiQAyt1yPs5al0z 24QXiy29Xf27sdjxZbmbHuuQtYmPUqeinwvb90X9gP3y+eIn1svBZFJ6S25xjcNJADm2QF6JIudok 5OnOtOkffEWiakRBSKxxiVeqvCN8XmIgWCPTGnOzGQ54wXXD5CelfTMovY+t+WAvW5L67+JJTD3Ch hkzasPNEWTyV+xk+dAFhmZYzFODy1FpQXrTfAFLvyuxYI7l+BcsNQYB3Esao9Qd5zFhwUtxtmQBbP x++Q+hNlmYx2LdOgCabWdyWG/lu8JJLl6VJzx6G+T4IX9FuxvNC46+fpV/SvRV1IkGezy8isd3c1o Iv/uFRwcAWa2lw==; Original-Received: from [87.69.77.57] (port=1337 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEx08-0003ic-Tc; Fri, 22 Jul 2022 14:03:49 -0400 In-Reply-To: <87lesl9k1n.fsf@gmail.com> (message from Robert Pluim on Fri, 22 Jul 2022 18:41:40 +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" Xref: news.gmane.io gmane.emacs.devel:292467 Archived-At: > From: Robert Pluim > Cc: akrl@sdf.org, emacs-devel@gnu.org, larsi@gnus.org > Date: Fri, 22 Jul 2022 18:41:40 +0200 > > >>>>> On Fri, 22 Jul 2022 19:18:19 +0300, Eli Zaretskii said: > > >> From: Robert Pluim > >> Cc: akrl@sdf.org, emacs-devel@gnu.org, larsi@gnus.org > >> Date: Fri, 22 Jul 2022 17:46:07 +0200 > >> > >> >>>>> On Fri, 22 Jul 2022 18:41:09 +0300, Eli Zaretskii said: > >> > >> >> From: Robert Pluim > >> >> Cc: emacs-devel@gnu.org, Lars Ingebrigtsen > >> >> Date: Fri, 22 Jul 2022 17:36:16 +0200 > >> >> > >> >> Something like this (untested) in `normal-top-level'? > >> >> > >> >> (unless (featurep 'native-compile) > >> >> (with-eval-after-load 'comp > >> >> (display-warning 'comp "This emacs does not support native compilation" :warning))) > >> > Eli> Why do we need this, again? > >> > >> I had comp.el loaded in my non-native compile capable Emacs, and tried > >> to run `native-compile-prune-cacheʼ, which gave me an error. Either we > >> accept that I did something that shouldnʼt be done, or we try to warn > >> people that they shouldnʼt do it (or on the gripping hand we add code > >> to check 'native-compile to a bunch of stuff in comp.el). > > Eli> What would be the reason to load comp.el in such a session? > > User error. Some people might write (require ʼcomp) in their > .emacs. Iʼm sure we can come up with lots of scenarios. If we want to handle user error of loading the file, then placing the code you suggested in comp.el itself would be TRT, I think. Not in startup.el.