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: Thu, 06 Oct 2022 13:13:40 +0300 Message-ID: <8335c1qmy3.fsf@gnu.org> References: <83lepwvzxq.fsf@gnu.org> <871qroyog9.fsf@yahoo.com> <837d1gvt35.fsf@gnu.org> <87sfk3yl10.fsf@yahoo.com> <87o7uqtlsl.fsf@yahoo.com> <83sfk2rzjs.fsf@gnu.org> <87k05du6x0.fsf@yahoo.com> <83tu4hqxp8.fsf@gnu.org> <87ilkxs9yg.fsf@yahoo.com> <83czb5qsyk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28496"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 06 12:16:00 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 1ogNv4-0007GS-6f for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 12:15:58 +0200 Original-Received: from localhost ([::1]:36788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogNv2-0004DQ-Gs for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 06:15:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogNsq-00021o-EU for emacs-devel@gnu.org; Thu, 06 Oct 2022 06:13:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogNsp-0003wr-J1; Thu, 06 Oct 2022 06:13:39 -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=aCOwlr8jTvrCvKqGIOTpE4an4UHlcxTLDXqv8uJ2RDA=; b=Fe8VhI0e4TYF aSd87v4qO0AfuyVC5aByNrgD94ooeq/vTNr/gBN5uwXRlOfl4YX1Q1ETzzWMydmguqYtDdJv8LdOJ EBBaix3NrGcbm0qQtWOGuBdvDmwa2sYHZRbyg59cwHGsfcpmaNuQl4tBaNRKjmAqzBJDV2UP+E3cI OA32A8nmSgqaZD+rrbYOJv/l2jo4L5X7W8sUf5h1TDy1S17ari8nU9l7YG8ayvbvkTS4g03yexvf1 jzPlZATuOfnZtzRgBL9KUQDboWW8lyjGFIVygwCBAdt8ffo1EkMTt00scpwmno07a6XpWDdGDu9IC Sf/KmMxMbUXwMv72552pbg==; Original-Received: from [87.69.77.57] (port=4243 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 1ogNso-00020A-Ot; Thu, 06 Oct 2022 06:13:39 -0400 In-Reply-To: (tomas@tuxteam.de) 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:297083 Archived-At: > Date: Thu, 6 Oct 2022 11:02:44 +0200 > From: > > > > The solution I would propose would be to defer JIT native-compilation > > > until the computer is on AC power, as determined by battery.el. > > > > We could have such a feature, but how to implement it? If we use a > > timer for that, the timer itself will drain the battery. > > Guessing from a previous mail by you, the correct way to achieve this > is to compiler results to a non-existent directory, right? No, this is a completely different use case. We _can_ disable native-compilation (and had this ability for a while, since Emacs 28 development); the issue here is how to re-enable it again "when computer is on AC power". > To me that feels strange, but I could live with that. Can it be documented? What would you like to be documented, exactly?