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: Suppressing native compilation (short and long term) Date: Sat, 05 Nov 2022 08:44:54 +0200 Message-ID: <83leop528p.fsf@gnu.org> References: <87bkqxf1ij.fsf@tethera.net> <871qrrpkgx.fsf@trouble.defaultvalue.org> <834jwnbi6c.fsf@gnu.org> <87mtafnun5.fsf@trouble.defaultvalue.org> <83sfk6ahty.fsf@gnu.org> <8735c6b0wo.fsf@gnus.org> <87y1ty9lha.fsf@gnus.org> <87lepym6ok.fsf@trouble.defaultvalue.org> <877d1i9h7k.fsf@gnus.org> <83edvqyr3q.fsf@gnu.org> <874jwl8e4p.fsf@gnus.org> <87pmf64beo.fsf@gnus.org> <87h70i4a46.fsf@gnus.org> <87czb648r9.fsf@gnus.org> <874jwi47l6.fsf@gnus.org> <87zgea2sgv.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4610"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, akrl@sdf.org, rlb@defaultvalue.org, monnier@iro.umontreal.ca, david@tethera.net, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 05 07:46:07 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 1orCwQ-0000xv-ER for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Nov 2022 07:46:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orCvO-0008VH-S1; Sat, 05 Nov 2022 02:45:02 -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 1orCvM-0008Ui-Of for emacs-devel@gnu.org; Sat, 05 Nov 2022 02:45:00 -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 1orCvL-0004s1-Gv; Sat, 05 Nov 2022 02:44:59 -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=N5Nj85MfZu2MUazdoMjFvvw4JsxAyrkwy8kOTwzg0qI=; b=P9usCDE75LEU mSyONksdiOwKkYqRhg2hH3pBOrUzyFr2RkjdNu2WFDeOSYGzWRit0JxFqc6m5PnxnFVDAr2J5IVoG HJoUrWFHrdnXDbdukxjvQ+CL2+sMQJgQuRaNpFjVoFiByVyOy+dFxCtrKWr7OGwZGstVUZCKkjE1P nX9hQp2VK7UYbxcplfSRlYrpOmmuDkMVzMumbEStGk0geN+CO4eoC3b3cn3zGy0cJPuslskPxSxNr eQT2jOiIPEe52/KGRmVnOiHGIA3dosUhgMIzhS+7bNV5coG08gucQBH3IHQalsdmL/jTFe7S24Kh+ rX4H9Ae+ZgPf+oqtg9vM/g==; Original-Received: from [87.69.77.57] (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 1orCvK-0003h9-Nw; Sat, 05 Nov 2022 02:44:59 -0400 In-Reply-To: (message from Juanma Barranquero on Sat, 5 Nov 2022 02:09:55 +0100) 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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299172 Archived-At: > From: Juanma Barranquero > Date: Sat, 5 Nov 2022 02:09:55 +0100 > Cc: Andrea Corallo , Eli Zaretskii , rlb@defaultvalue.org, > monnier@iro.umontreal.ca, david@tethera.net, emacs-devel@gnu.org > > In my setup, I call `startup-redirect-eln-cache' in init.el because I don't > want the cache in my .emacs.d/. Why do you need to do that? What's the problem with having the eln-cache under your ~/.emacs.d/? > However, when I'm using -Q to test something, I do > M-x whatever-which-loads-a-module and end up getting an unwanted > .emacs.d/eln-cache/ If this testing is for the purposes of Emacs development, then my suggestion is to have a separate build configured without native compilation support. That's what I do. > So either a --no-native flag (setting `inhibit-automatic-native-compilation', > and perhaps `load-no-native', to t) or having such behavior in -Q would be > quite helpful. > > Yes, I can define an alias to use > > --eval "(setq inhibit-automatic-native-compilation t)" > > I already have. Still, I regularly forget it and default to emacs -Q. So it's just a matter of getting used to using the alias, and will be solved with time. > So, FWIW, I agree with your sentiment that -Q has no single defining goal > other than "do not do unnecessary things, please", and inhibiting native > comp would fit quite well. I disagree. We have too many knobs already, so adding a new one without a good reason would be a mistake in the long run.