Received: (at 80922) by debbugs.gnu.org; 30 Apr 2026 11:23:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 07:23:44 2026 Received: from localhost ([127.0.0.1]:54602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wIPUc-0002hI-6K for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 07:23:44 -0400 Received: from flow-a1-smtp.messagingengine.com ([103.168.172.136]:48287) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wIPUZ-0002gN-LN for 80922 <at> debbugs.gnu.org; Thu, 30 Apr 2026 07:23:40 -0400 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailflow.phl.internal (Postfix) with ESMTP id 7D5A01380127; Thu, 30 Apr 2026 07:23:34 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 30 Apr 2026 07:23:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1777548214; x= 1777551814; bh=F+c/iSMPxm/hcVK53qL8OXkyysZc00MsjvxcDBs/aSA=; b=Q NE9ukHe9hFAY7YTcmvhFQdKw+j+gPIwAkNX9lsiTkTeOsDrIwp0Q1CX1K065yPaY sBRMOIIWld3U6PERDRe+HmZFAfOyeR1MN9ZxrVgRzJ8K/sdXIbwDiAKVOVrv1S40 sHg6jY1ptOqJRZEApvuzcQA5w/ktEMSgoedkaF+Tt9u73S8Hx2HfGFwXF/7BXTbs ADA7Mc5r0UsFyHA0mVOd4XzcD+gl+dugvN1KrV/fdtCBIED0FPl18bgzexyy923W MNLd8YN7wDbeK8Tt5kh1oWjdDXmn+9OJGWbLLAjR1hufluaWf1NC22644EUJVseJ mEznTQHCZVz2B6xFkcE0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1777548214; x=1777551814; bh=F+c/iSMPxm/hcVK53qL8OXkyysZc00Msjvx cDBs/aSA=; b=UIFZ4+kv6eYBJvWBDpJcuxMeHmnGpWfOd/KTlg5ol+FlyBh3x2X XCdBf+mmo5FDEfv0UafFRAVRO4HLOm1a8cNnDjGn+IdN7LWDqiWBklswO5aW4D6G XIx02i9IqhmXhrpV4UGCh86BLbfg5GKneysD5OtwbI42a43/081N5MOVl/ysKoI8 9BHnuywD49biUTymXtM97iCtznqxk8RqX6wVx4cjypeTVXGUkmc7qI9SxRqSXa7a DljycWihnyqszY3OCnXtk7rwX5tljrgEme70zP0ZdosvC1hD7VaKuDAmzDNpPwMZ oUtQbd8Ehe+JxRHhu2x2EvCgLI81UwBIqJg== X-ME-Sender: <xms:tjvzaaa_Flx3_anfB4pOdWAt_-SL9dPL_pYGe5lsVplIc-s7J5fNdg> <xme:tjvzaVJBsS_aKutOoaKVLBbl3v7LhQrFxqb181H9rDNmitFcGdZEtpKLUk1l89LA4 doEzRs9ZYycvGBgxoHPlhxWk2WiiSE9GX-ZVVglzPxDbexeeCGTUY4> X-ME-Received: <xmr:tjvzaYD3IU3drnkEaxm1fenFT3ECYB4Y1kGOzEGH3L-sqrlAXmzqpnP56vV3NkqjK09UHV096oNY> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdekjedulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesthdttddttddttdenucfhrhhomhepufgvrghnucghhhhi thhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenucggtf frrghtthgvrhhnpedvvdehgefghfeuhfelkeduffehgfehkeefteekfffgffdvueefuefg udffhfduhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgdpnhgspghrtghpthht ohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkedtledvvdesuggvsggsuh hgshdrghhnuhdrohhrghdprhgtphhtthhopehkohhpphgvlhesvggtvgdrlhhsuhdrvggu uhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh X-ME-Proxy: <xmx:tjvzaariZJDKNT3dq6XZxuMBip9I43ZeWQhl_JO5Mc_XdkV7MJoRIA> <xmx:tjvzaThIJO2_8t03YdCah26SrgQX2HRylzpGFPucCkHigYRhKE3fOA> <xmx:tjvzaXDQIxh-6-YpF4cICnvtISm4XpX69hohSt5c2iidyAaiUZlaKw> <xmx:tjvzaYFtrikK6rmdMCTrlWo094CX3NIxmpmu40SuTkWAVeZR9yK6gw> <xmx:tjvzaZMwBkdrlfcJ4Rq7B3rD28uGjnHA3a--PipWJ2VQSJ_do42iMHzU> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Apr 2026 07:23:33 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id 246D67E1B71; Thu, 30 Apr 2026 12:23:30 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. In-Reply-To: <86y0i43eo7.fsf@HIDDEN> References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> <yg5cxzjm8ef.fsf@HIDDEN> <87tsst4r3y.fsf@HIDDEN> <yg5lde5ljvf.fsf@HIDDEN> <87y0i4ixcv.fsf@HIDDEN> <86y0i43eo7.fsf@HIDDEN> Date: Thu, 30 Apr 2026 12:23:30 +0100 Message-ID: <87a4ukhetp.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 80922 Cc: koppel@HIDDEN, 80922 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Eli Zaretskii [30/Apr 1:50pm +03] wrote: >> From: Sean Whitton <spwhitton@HIDDEN> >> Cc: Eli Zaretskii <eliz@HIDDEN>, 80922 <at> debbugs.gnu.org >> Date: Thu, 30 Apr 2026 10:57:52 +0100 >> >> > Eli explained that some time back there was a discussion about the >> > situations in which asynchronous native compilation should be skipped, >> > and the agreement was that it should be skipped when unplugged but >> > also when the system was plugged in but the battery was not fully >> > charged. >> >> I had a look at our previous discussions. I am pretty sure that Eli is >> misremembering. > > So you think we should enable native-compilation as soon as the laptop > is plugged in, regardless of the percentage? How about we enable it 10s after the laptop is plugged in so long as we are above 20%? -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 30 Apr 2026 10:50:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 06:50:56 2026 Received: from localhost ([127.0.0.1]:54481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wIOyu-00075L-6K for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 06:50:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40306) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wIOyr-000749-2Q for 80922 <at> debbugs.gnu.org; Thu, 30 Apr 2026 06:50:53 -0400 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 <eliz@HIDDEN>) id 1wIOyk-0006lY-LY; Thu, 30 Apr 2026 06:50:46 -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=ySR3jJ7zPpLMJ0+Md73qe93nQaqMRiGU0jWVyOyKhRY=; b=a8aexcKKlHcm FTxN4CCE/4sNClLL8St5RXG1RaiHbZQNR+3fIP2C8Q1/PNzDp9TryTRgIjEidKeuoeIvMBo7vawQu L81NhPug/X/JJfca1WYh1lBkkBhVXd6sy5Mr3uWJRfECn433kkF/mmaBhdg6FekIjxdW13BArxuLn qNSpH7mRkXpHiBzwRargFJLDsKdGtNEQBkyLBnywx5o23q9OL4SeDP6KdGucZbg1AU7wMja7e8bET PdhFSSiU3HnVkWB0xFex+eERPxAAYAm5mCwS+naaDTNwnK+ZcVnyA2eL8AQdvvL+6DUn0BVzAQacz siwdEhYScRQrx2SIkZCvKg==; Date: Thu, 30 Apr 2026 13:50:32 +0300 Message-Id: <86y0i43eo7.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> In-Reply-To: <87y0i4ixcv.fsf@HIDDEN> (message from Sean Whitton on Thu, 30 Apr 2026 10:57:52 +0100) Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> <yg5cxzjm8ef.fsf@HIDDEN> <87tsst4r3y.fsf@HIDDEN> <yg5lde5ljvf.fsf@HIDDEN> <87y0i4ixcv.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 80922 Cc: koppel@HIDDEN, 80922 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Sean Whitton <spwhitton@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, 80922 <at> debbugs.gnu.org > Date: Thu, 30 Apr 2026 10:57:52 +0100 > > > Eli explained that some time back there was a discussion about the > > situations in which asynchronous native compilation should be skipped, > > and the agreement was that it should be skipped when unplugged but > > also when the system was plugged in but the battery was not fully > > charged. > > I had a look at our previous discussions. I am pretty sure that Eli is > misremembering. So you think we should enable native-compilation as soon as the laptop is plugged in, regardless of the percentage?
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 30 Apr 2026 09:58:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 05:58:05 2026 Received: from localhost ([127.0.0.1]:54090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wIO9l-00017p-2J for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 05:58:05 -0400 Received: from flow-a3-smtp.messagingengine.com ([103.168.172.138]:52465) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wIO9i-000172-VA for 80922 <at> debbugs.gnu.org; Thu, 30 Apr 2026 05:58:03 -0400 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailflow.phl.internal (Postfix) with ESMTP id 82A621380535; Thu, 30 Apr 2026 05:57:57 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Thu, 30 Apr 2026 05:57:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1777543077; x= 1777546677; bh=Xv2yIVFciCMXZbcUSxod59a9iqr7ctiQxiRWTVst8PA=; b=Q oX6uVDLU75ojXNRX0eKrJuMVVNFS0eAocsnoZm068ZJ1ekbpxbKkr6z5getX8oVO p+qhNHv/8itoErHQmlHoIIrjH4RfXFkIJxvm9ISO2aPYTRUtJXobo0Odm8cIy0N3 2PFUYbfxRLR3hlopTuwRaSQi1lGYfOb5v+/mPnxoa0QnluiPV0StUaIQ3z/3oiSw 9Ptg31914kKy9gPr5JgCUMm4AZEvsfvrQEnnKO9N0j+rYzxZqH/aZp8S5sIMA3IT cJUGyzywVbqb/Mob2914IlwSQ4IgOdZoRMi6WItmPaom/Qte/C0+a3Y0+yUjfcNM +GkKO2PW4xyOzKYPhlr3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1777543077; x=1777546677; bh=Xv2yIVFciCMXZbcUSxod59a9iqr7ctiQxiR WTVst8PA=; b=qWxMdP4Rn163IlmzgvkMGUniUn3W+oFvaVTL4wmv0eZAvSvn8TD EpCg+btIv3sruCwYrsMvSsybgeYGDmHhql9+2C9PkbpHi42mtikRgdWpnmFEFIqw nDKzjXrTDxAE+slPrHhZT5z39a//pwcTljYQcsThe45oQRzYWd5vwWdmhTxjmmPj HYuF6CJFhbxg8YIZstm8LY61JwYPj52jztsFjRC6wfxZxfyad4FaU/6S5IQgialQ rNNlJgn/R8jcuw8K6huqk6tGZoyq9PGqXpzIA8kXKkLdtW6fuxzM+XMnAvcrLhUO uOn/wF+PO/1CKx7pEHq0hj7jTjLlHvM+p4g== X-ME-Sender: <xms:pSfzaVCsIZyi4liP9jnMo5ueNv07WzBnIeW5g8j4JIZJhUPGO7iZuw> <xme:pSfzabTBsN0lOW6GOXzq9IIIKWbc8fxa8d8jAmGO3bOWY0FADpXojGYqvjAfFR7HY uNwYqUrEjtMxEsbI3l0mkeVQp94cFbFKsJiisoLe6n7Cfg1qNXZLg> X-ME-Received: <xmr:pSfzaTqtm0ao0_u4HIpa5FeD47TwTXwuQ0Wi-glNVjKmqkLSwl_Akg2SHhq7a77gyOK0SpHVZLlg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdekjedtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesthdttddttddttdenucfhrhhomhepufgvrghnucghhhhi thhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenucggtf frrghtthgvrhhnpedvvdehgefghfeuhfelkeduffehgfehkeefteekfffgffdvueefuefg udffhfduhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgdpnhgspghrtghpthht ohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkedtledvvdesuggvsggsuh hgshdrghhnuhdrohhrghdprhgtphhtthhopehkohhpphgvlhesvggtvgdrlhhsuhdrvggu uhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh X-ME-Proxy: <xmx:pSfzadxe9PUZ-uRXPaZYA9IXPoR4aaxYQ9nvMqBHthzevheBShDgww> <xmx:pSfzaYIV6e5w1tw5ESZQA9iGZBn932ozS5sRG5qAqF8It-NKxjVJgg> <xmx:pSfzafK0lxVJPWcvQnAQMbRdve5Exj9IqnKNrnkzX1SZxeOeL_n4-w> <xmx:pSfzaduEK5cJL3gUYO9NznMpNwbTNNHOfwnruqSwSwTChrjBkPXmtQ> <xmx:pSfzaU1Lv4A9UMFPMGvksjqoM-zf2hUbHboPyt8e3huLS4iFPyFyODUl> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Apr 2026 05:57:56 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id E77E57E1919; Thu, 30 Apr 2026 10:57:52 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: David Koppelman <koppel@HIDDEN> Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. In-Reply-To: <yg5lde5ljvf.fsf@HIDDEN> References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> <yg5cxzjm8ef.fsf@HIDDEN> <87tsst4r3y.fsf@HIDDEN> <yg5lde5ljvf.fsf@HIDDEN> Date: Thu, 30 Apr 2026 10:57:52 +0100 Message-ID: <87y0i4ixcv.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 80922 Cc: Eli Zaretskii <eliz@HIDDEN>, 80922 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) David Koppelman [29/Apr 1:08pm -05] wrote: > First of all, I'm not sure whether Sean Whitton's question is directed > at me or Eli. Assuming it's for me: > > The patch that I attached to the opening post of this bug was written > under the assumption that the intended behavior is that when > native-comp-async-on-battery-power is nil, asynchronous native > compilation would be skipped when the device was unplugged and > performed when plugged in. I attributed the complexity of the OR > expression as needed to work with the variety of data that might be > returned by battery-status-function on different laptops. That is, I > assumed the check for charging, pending charge, etc. was there for > cases in which the driver would not indicate the plugged status in > entry L with "off-line" and "on-line" strings. Correct. > Eli explained that some time back there was a discussion about the > situations in which asynchronous native compilation should be skipped, > and the agreement was that it should be skipped when unplugged but > also when the system was plugged in but the battery was not fully > charged. I had a look at our previous discussions. I am pretty sure that Eli is misremembering. > If it were up to me I'd make 'when-unplugged the default, but I > haven't reviewed the earlier discussion. Yes, there are plans to make it the default as soon as starting compilations that were skipped as soon as AC power is reconnected. Let's put aside the tristate option for now and just try to fix the current code. Re-reading the old thread, I came up with the complex 'or' condition based on reading battery.el, and seeing what possibilities there were. But clearly I got this wrong. Your change is quite drastic. Is there something more minimal that would fix things on your machine without changing it on a lot of others? -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 29 Apr 2026 18:09:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 14:09:16 2026 Received: from localhost ([127.0.0.1]:46533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI9LX-0001tI-D8 for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 14:09:15 -0400 Received: from outbound.lsu.edu ([130.39.6.46]:58290 helo=relay.lsu.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eekopp@HIDDEN>) id 1wI9LU-0001t2-HK for 80922 <at> debbugs.gnu.org; Wed, 29 Apr 2026 14:09:13 -0400 Received: from cyc2.ece.lsu.edu (cyc2.ece.lsu.edu [96.125.114.179]) by relay.lsu.edu (Postfix) with ESMTPS id ED2C1600209; Wed, 29 Apr 2026 13:08:36 -0500 (CDT) From: David Koppelman <koppel@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. In-Reply-To: <87tsst4r3y.fsf@HIDDEN> References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> <yg5cxzjm8ef.fsf@HIDDEN> <87tsst4r3y.fsf@HIDDEN> Date: Wed, 29 Apr 2026 13:08:36 -0500 Message-ID: <yg5lde5ljvf.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 80922 Cc: Eli Zaretskii <eliz@HIDDEN>, 80922 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) First of all, I'm not sure whether Sean Whitton's question is directed at me or Eli. Assuming it's for me: The patch that I attached to the opening post of this bug was written under the assumption that the intended behavior is that when native-comp-async-on-battery-power is nil, asynchronous native compilation would be skipped when the device was unplugged and performed when plugged in. I attributed the complexity of the OR expression as needed to work with the variety of data that might be returned by battery-status-function on different laptops. That is, I assumed the check for charging, pending charge, etc. was there for cases in which the driver would not indicate the plugged status in entry L with "off-line" and "on-line" strings. Eli explained that some time back there was a discussion about the situations in which asynchronous native compilation should be skipped, and the agreement was that it should be skipped when unplugged but also when the system was plugged in but the battery was not fully charged. So, technically this could be marked not-a-bug, or perhaps the flaw now is the incomplete docstring in native-comp-async-on-battery-power, which says nothing about behavior when the device is plugged in. However, I would prefer three settings to a newly named variable, native-comp-async-disallow. Those setting would be: 'never Always perform asynchronous native compilation. 'when-unplugged Don't perform asynchronous native compilation when unplugged. 'when-unplugged-or-charging Don't perform asynchronous native compilation when unplugged nor when plugged in and the battery is charging. The code as written (without my patch) also skips native compilation when the device is plugged in but is not charging because the SoC has not gone below a low threshold set by the user. (I assume that's what "pending-charge" indicates, which is an entry my laptop returned.) If it were up to me I'd make 'when-unplugged the default, but I haven't reviewed the earlier discussion. I'd make it the default because I assume that most people would be concerned about battery drain but would not be concerned about whatever impact there was on the time to charge when plugged in and confronted with an asynchronous native-compile swarm. I'd volunteer to prepare a patch, but my one concern is that I could only test it on my Dell laptop running Fedora. David Sean Whitton <spwhitton@HIDDEN> writes: > David Koppelman [28/Apr 10:06am -05] wrote: >>> I think it's intentional. Native compilation will be re-enabled once >>> your laptop is fully charged. Sean, am I right? >> >> As a user, I don't want native compilation consuming battery energy when >> I'm unplugged. But when I am plugged in I don't mind if native >> compilation slightly increases the time it takes to charge, if that >> happens at all. >> >> Also, I've set the charge level to 80% and I've also set my laptop to >> not start charging unless the battery is 50% or lower. Obviously there >> would be no benefit at all skipping native compilation when plugged in >> but not charging because the battery SoC is below my chosen threshold. > > I believe my intention was that as soon as you plug in, native > compilation can resume, and you shouldn't have to wait until the laptop > is fully charged. > > I'm not sure exactly how the current code is meant to achieve that and > it seems you've found an issue with it. Could you explain more why you > think the change you propose is the right one?
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 29 Apr 2026 17:24:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 13:24:26 2026 Received: from localhost ([127.0.0.1]:46242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI8e9-00046p-VG for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 13:24:26 -0400 Received: from flow-b2-smtp.messagingengine.com ([202.12.124.137]:32911) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wI8e8-00046V-6e for 80922 <at> debbugs.gnu.org; Wed, 29 Apr 2026 13:24:24 -0400 Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48]) by mailflow.stl.internal (Postfix) with ESMTP id A612813000DD; Wed, 29 Apr 2026 13:24:18 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Wed, 29 Apr 2026 13:24:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1777483458; x= 1777487058; bh=T6dhNeFvM6HnKyrCzAD0EWAnoiqCOAyHns9dPMuEMcg=; b=j L29MgTyE08aZyNDJ1klJK8LMzO1KAN/V1TLZplJ1OZKsjmhIK6sqppoMVLa/bZH1 a6UKI2eqvZYNpJp6xzl1jNoTricrN8mtiDZwJAuCBJpt8do7mywO9K+FnmHYX7v8 94Y/vR2xF7kMQGY2Ty8/cmuQP0RUcj1MD9wP/QVFK9/825+7XbGyFzh2AYBDRGZX 5vxYfRzTwoZMGvyhhA4g7xl80/4ciOlBaiV4JQkWB/Y4/BTFSbbBHU4JI9ztTbj8 B+gkXDgxxji1EUczXq221eTJXYad2RGMLe9ox2pYOdfmqAwH5IlHOTJac2qr92eh NSwD0nVWBUj9I2AM/Db1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1777483458; x=1777487058; bh=T6dhNeFvM6HnKyrCzAD0EWAnoiqCOAyHns9 dPMuEMcg=; b=nV3SLkwQflvSJP8GnbSifCwR7op0GOTlCNw0upz2TjtcdNCDheQ Ks++oVrH3JXnZJ71oQoF1Xl3bcSlLNrEjlAcKvKRN/MNeuhjeZeM7HKzYUvovsPN M6nRhqtosd6/hEgNTuA1HvpJzb67w3MuOuKXycCUgzYiIs5+A+cbx+a1Z0qEZlax uMeCtwArBQdpBuELRLIghmSrUOEBb03HNapCRRiWt9Z3XKAJG8r0QV+X7ERSkVGt zQ7SN31Oc1nJU+tZzBF8aQpAaZufdU4wrC5KVgQZ1QkTAke6QyFUxpJNw3dHzLbq IIOqe+/t6GyHWySH6wJu4rqK6WZ8Mky3EVQ== X-ME-Sender: <xms:wj7yaZqgZ6M9F5hffSxAFlj-8Cu4SU1b1cLhtVoay7BzS2mTF6mUVw> <xme:wj7yaTZBLDC0CIHrBMRQU9J3B350fNztuQ8CPeUgYUTZFIrTQl9lofnll5K4hWS1C Lf-G-X6qIDfcTZeu-d9zAjgjY7cvpYair8ClUtfhiAU9zVPFIuQHqdh> X-ME-Received: <xmr:wj7yaZTDl6GgEYQeIZBq9q_QCHJQYkvfR9hIGQiYfdHBoFx28Asmqx9jwzP9DkJGHoLL_hn71rN3> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdekhedtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesthdttddttddttdenucfhrhhomhepufgvrghnucghhhhi thhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenucggtf frrghtthgvrhhnpedvvdehgefghfeuhfelkeduffehgfehkeefteekfffgffdvueefuefg udffhfduhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgdpnhgspghrtghpthht ohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkedtledvvdesuggvsggsuh hgshdrghhnuhdrohhrghdprhgtphhtthhopehkohhpphgvlhesvggtvgdrlhhsuhdrvggu uhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh X-ME-Proxy: <xmx:wj7yaS6_VtYjGOQQDSQ0d7PksP3P4Gd50FWcQVanG6ZGaLzN-h50jg> <xmx:wj7yaWzE7cLa3o1-ChfWJdkDXB9oJwFqhqHIrUQq5U-t2qIl_No9tg> <xmx:wj7yaZRqdLwy-731lnZuuOP3pr4NHysW8qM96fzdjxbXFNYYJu4-JQ> <xmx:wj7yadVmrNuDskm6v6kid6ELS1HDcvsYh9rf1UDHVig4F2QxFJ-dxw> <xmx:wj7yaaeW18DFm-6XwaJeArVJoZfcaKB6dyPnhDvmAbE9_AGMZG7AaQ0d> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Apr 2026 13:24:17 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id 2CB1B7E1B5D; Wed, 29 Apr 2026 18:24:17 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: David Koppelman <koppel@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. In-Reply-To: <yg5cxzjm8ef.fsf@HIDDEN> References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> <yg5cxzjm8ef.fsf@HIDDEN> Date: Wed, 29 Apr 2026 18:24:17 +0100 Message-ID: <87tsst4r3y.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 80922 Cc: 80922 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) David Koppelman [28/Apr 10:06am -05] wrote: >> I think it's intentional. Native compilation will be re-enabled once >> your laptop is fully charged. Sean, am I right? > > As a user, I don't want native compilation consuming battery energy when > I'm unplugged. But when I am plugged in I don't mind if native > compilation slightly increases the time it takes to charge, if that > happens at all. > > Also, I've set the charge level to 80% and I've also set my laptop to > not start charging unless the battery is 50% or lower. Obviously there > would be no benefit at all skipping native compilation when plugged in > but not charging because the battery SoC is below my chosen threshold. I believe my intention was that as soon as you plug in, native compilation can resume, and you shouldn't have to wait until the laptop is fully charged. I'm not sure exactly how the current code is meant to achieve that and it seems you've found an issue with it. Could you explain more why you think the change you propose is the right one? -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 28 Apr 2026 16:05:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 28 12:05:20 2026 Received: from localhost ([127.0.0.1]:58467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wHkw3-0005ak-V3 for submit <at> debbugs.gnu.org; Tue, 28 Apr 2026 12:05:20 -0400 Received: from relay001.lsu.edu ([130.39.6.46]:49012 helo=relay.lsu.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eekopp@HIDDEN>) id 1wHkw1-0005Wr-C0 for 80922 <at> debbugs.gnu.org; Tue, 28 Apr 2026 12:05:18 -0400 Received: from cyc2.ece.lsu.edu (cyc2.ece.lsu.edu [96.125.114.179]) by relay.lsu.edu (Postfix) with ESMTPS id 20938600220; Tue, 28 Apr 2026 11:05:11 -0500 (CDT) From: David Koppelman <koppel@HIDDEN> To: spwhitton@HIDDEN, 80922 <at> debbugs.gnu.org Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. In-Reply-To: <867bpr5c09.fsf@HIDDEN> References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> <yg5cxzjm8ef.fsf@HIDDEN> <867bpr5c09.fsf@HIDDEN> Date: Tue, 28 Apr 2026 11:05:11 -0500 Message-ID: <yg54ikvm5oo.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 80922 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > Once again, we could make the option allow compilation while charging, > as an additional optional value. Regardless of the chosen policy the name of the variable, native-comp-async-on-battery-power, and its documentation is confusing because what happens when the system is *not* on battery power isn't mentioned and at least to me is not obvious. So that needs to be changed if nothing else. Perhaps this is a better way: Replace (or augment) native-comp-async-on-battery-power with new variable native-comp-async-allow. It would have the following possible values: 'always 'when-plugged 'when-plugged-and-charged Or maybe native-comp-async-disallow: 'never 'when-unplugged 'when-unplugged-or-charging Eli Zaretskii <eliz@HIDDEN> writes: >> From: David Koppelman <koppel@HIDDEN> >> Cc: Sean Whitton <spwhitton@HIDDEN>, 80922 <at> debbugs.gnu.org >> Date: Tue, 28 Apr 2026 10:06:32 -0500 >> >> > I think it's intentional. Native compilation will be re-enabled once >> > your laptop is fully charged. Sean, am I right? >> >> As a user, I don't want native compilation consuming battery energy when >> I'm unplugged. But when I am plugged in I don't mind if native >> compilation slightly increases the time it takes to charge, if that >> happens at all. >> >> Also, I've set the charge level to 80% and I've also set my laptop to >> not start charging unless the battery is 50% or lower. Obviously there >> would be no benefit at all skipping native compilation when plugged in >> but not charging because the battery SoC is below my chosen threshold. > > AFAIR, at the time this feature was added, we discussed all that and > decided that what the code does now is the best. In particular, the > laptop shows that it's charging immediately when it has been plugged > in, which could still be at 10% battery capacity or less. > > Once again, we could make the option allow compilation while charging, > as an additional optional value.
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 28 Apr 2026 15:40:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 28 11:40:51 2026 Received: from localhost ([127.0.0.1]:58219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wHkYM-0002Zi-LT for submit <at> debbugs.gnu.org; Tue, 28 Apr 2026 11:40:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45892) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wHkYK-0002YT-02 for 80922 <at> debbugs.gnu.org; Tue, 28 Apr 2026 11:40:48 -0400 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 <eliz@HIDDEN>) id 1wHkYD-0007so-KV; Tue, 28 Apr 2026 11:40:41 -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=FQK8YhcvyGKvnAhLWcUZzWuzSgfuTFI+ShrTgjFq79o=; b=pEnDDXqMgjy6 4vM2Gfy/r+FHlsjzdTxRS6OlAPVY6nkhfDbm6bOBBas2aev9LzSgANosPrgPlv4AoiCmWCshFvkx7 /neJsMTyskaPYlO93mdbO74DEzpfk+lJPMXlVMEBFPbQzVxIYwF22R1p1Se+MBpwRq04VkL0Sv/38 Nfeo9WY297h7YTOKeYiagmgfJOf2Nkw19JEyLqk/1ETkOXDYeh+aM7N0ggH8Cy8BeHgMV3sxzzaWZ 8RpFSDf2ASyABY+0bmbeFcu6ddAGV2pJyWmRluasml9aWuegC+25Os6kWdzlVHxbTHqrFJejiMwwm UaZTQ7VJrsYUSH1YOGSLnw==; Date: Tue, 28 Apr 2026 18:40:38 +0300 Message-Id: <867bpr5c09.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: David Koppelman <koppel@HIDDEN> In-Reply-To: <yg5cxzjm8ef.fsf@HIDDEN> (message from David Koppelman on Tue, 28 Apr 2026 10:06:32 -0500) Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> <yg5cxzjm8ef.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 80922 Cc: 80922 <at> debbugs.gnu.org, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: David Koppelman <koppel@HIDDEN> > Cc: Sean Whitton <spwhitton@HIDDEN>, 80922 <at> debbugs.gnu.org > Date: Tue, 28 Apr 2026 10:06:32 -0500 > > > I think it's intentional. Native compilation will be re-enabled once > > your laptop is fully charged. Sean, am I right? > > As a user, I don't want native compilation consuming battery energy when > I'm unplugged. But when I am plugged in I don't mind if native > compilation slightly increases the time it takes to charge, if that > happens at all. > > Also, I've set the charge level to 80% and I've also set my laptop to > not start charging unless the battery is 50% or lower. Obviously there > would be no benefit at all skipping native compilation when plugged in > but not charging because the battery SoC is below my chosen threshold. AFAIR, at the time this feature was added, we discussed all that and decided that what the code does now is the best. In particular, the laptop shows that it's charging immediately when it has been plugged in, which could still be at 10% battery capacity or less. Once again, we could make the option allow compilation while charging, as an additional optional value.
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 28 Apr 2026 15:06:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 28 11:06:41 2026 Received: from localhost ([127.0.0.1]:57862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wHk1I-0006lF-Vz for submit <at> debbugs.gnu.org; Tue, 28 Apr 2026 11:06:41 -0400 Received: from relaymail001.lsu.edu ([130.39.6.46]:55572 helo=relay.lsu.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eekopp@HIDDEN>) id 1wHk1G-0006kw-8b for 80922 <at> debbugs.gnu.org; Tue, 28 Apr 2026 11:06:38 -0400 Received: from cyc2.ece.lsu.edu (cyc2.ece.lsu.edu [96.125.114.179]) by relay.lsu.edu (Postfix) with ESMTPS id 41F1D60021F; Tue, 28 Apr 2026 10:06:32 -0500 (CDT) From: David Koppelman <koppel@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. In-Reply-To: <86bjf35e6r.fsf@HIDDEN> References: <yg5lde7mbbw.fsf@HIDDEN> <86bjf35e6r.fsf@HIDDEN> Date: Tue, 28 Apr 2026 10:06:32 -0500 Message-ID: <yg5cxzjm8ef.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 80922 Cc: 80922 <at> debbugs.gnu.org, Sean Whitton <spwhitton@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > I think it's intentional. Native compilation will be re-enabled once > your laptop is fully charged. Sean, am I right? As a user, I don't want native compilation consuming battery energy when I'm unplugged. But when I am plugged in I don't mind if native compilation slightly increases the time it takes to charge, if that happens at all. Also, I've set the charge level to 80% and I've also set my laptop to not start charging unless the battery is 50% or lower. Obviously there would be no benefit at all skipping native compilation when plugged in but not charging because the battery SoC is below my chosen threshold. David Eli Zaretskii <eliz@HIDDEN> writes: >> Date: Tue, 28 Apr 2026 09:03:15 -0500 >> From: David Koppelman via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> >> >> >> With (setq native-comp-async-on-battery-power nil) native compilation >> is skipped when my laptop is plugged in. > > I think it's intentional. Native compilation will be re-enabled once > your laptop is fully charged. Sean, am I right? > >> The following patch fixes the problem: > > It basically disables the test, so I don't think we can install this. > But maybe we can make the option a tristate, with the 3rd value > enabling native compilation when the laptop is charging. > > Thanks.
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 28 Apr 2026 14:53:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 28 10:53:50 2026 Received: from localhost ([127.0.0.1]:57706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wHjoo-0005CV-S0 for submit <at> debbugs.gnu.org; Tue, 28 Apr 2026 10:53:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46122) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wHjoj-0005BJ-NW for 80922 <at> debbugs.gnu.org; Tue, 28 Apr 2026 10:53:43 -0400 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 <eliz@HIDDEN>) id 1wHjod-0004Ev-Ep; Tue, 28 Apr 2026 10:53:35 -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=Uo8dCivtdnfYwnS6p8dSxXtxMARjvIAWZIAsONGmSJ0=; b=Wg2lB0OxBVma j/f4cY/ZS13jIGHmrMNvBbuwEgzPPAAx6A2b1WP5IOewuqbqnNfi/vD5CFMOPY7zjOeiCSlncsC4U SQJMLqQojLjocm4/Qv6a8ma6E2T/NNgHw+T6wDobcWxWfP/EACPQ8yAz0bXIsg0RDCQtccKQ74wxJ ynfESM+1J2MQNGSz6j2aarOWWKo1OhpZ7CxQM0IcHE0izCTA8ZdiKqt/JOaRmmm9kwDTejfgbkORH Lp/oWaOrTqH5dwuKCCnpl2QRyPl47TrYVl5/zB9+y3yL9DqaZBjeMQSn3KXN5ZCZGv2omI/Hs/pkP NZivgpG+vdl82vO/sdSe1Q==; Date: Tue, 28 Apr 2026 17:53:32 +0300 Message-Id: <86bjf35e6r.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: David Koppelman <koppel@HIDDEN>, Sean Whitton <spwhitton@HIDDEN> In-Reply-To: <yg5lde7mbbw.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#80922: 31.0.50; Native compilation skipped when plugged in. References: <yg5lde7mbbw.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 80922 Cc: 80922 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Tue, 28 Apr 2026 09:03:15 -0500 > From: David Koppelman via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > > With (setq native-comp-async-on-battery-power nil) native compilation > is skipped when my laptop is plugged in. I think it's intentional. Native compilation will be re-enabled once your laptop is fully charged. Sean, am I right? > The following patch fixes the problem: It basically disables the test, so I don't think we can install this. But maybe we can make the option a tristate, with the 3rd value enabling native compilation when the laptop is charging. Thanks.
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.Received: (at 80922) by debbugs.gnu.org; 28 Apr 2026 14:31:55 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 28 10:31:55 2026 Received: from localhost ([127.0.0.1]:57460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wHjTf-00023o-6n for submit <at> debbugs.gnu.org; Tue, 28 Apr 2026 10:31:55 -0400 Received: from relay002.lsu.edu ([130.39.6.157]:47790 helo=relay.lsu.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eekopp@HIDDEN>) id 1wHjTc-000223-22 for 80922 <at> debbugs.gnu.org; Tue, 28 Apr 2026 10:31:53 -0400 Received: from cyc2.ece.lsu.edu (cyc2.ece.lsu.edu [96.125.114.179]) by relay.lsu.edu (Postfix) with ESMTPS id E55982CA for <80922 <at> debbugs.gnu.org>; Tue, 28 Apr 2026 09:31:45 -0500 (CDT) From: David Koppelman <koppel@HIDDEN> To: 80922 <at> debbugs.gnu.org Subject: More information on battery status information. Date: Tue, 28 Apr 2026 09:31:45 -0500 Message-ID: <yg5h5ovma0e.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 80922 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Actually, the more straightforward fix for me would have been checking for "on-line" before the big OR expression, but I assumed checking for "+", "charging", etc was needed for broader compatibility so I inverted all but the first term in the big OR expression. Here is the information provided by battery-status-function on my computer, a Dell Precision 7680 laptop with the battery set to charge only up to 80%: Unplugged (not connected to mains): ((99 . "53800") (114 . "0.0 W") (76 . "off-line") (66 . "discharging") (98 . "") (100 . "32") (112 . "65") (115 . "0") (109 . "0") (104 . "0") (116 . "0:00")) Plugged (connected to mains): ((99 . "53835") (114 . "0.0 W") (76 . "on-line") (66 . "pending-charge") (98 . "") (100 . "32") (112 . "65") (115 . "0") (109 . "0") (104 . "0") (116 . "0:00")) David
bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 28 Apr 2026 14:03:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 28 10:03:39 2026
Received: from localhost ([127.0.0.1]:57174 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wHj2G-00074L-4p
for submit <at> debbugs.gnu.org; Tue, 28 Apr 2026 10:03:39 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:55462)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eekopp@HIDDEN>) id 1wHj29-00073r-F7
for submit <at> debbugs.gnu.org; Tue, 28 Apr 2026 10:03:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eekopp@HIDDEN>) id 1wHj23-0006de-H0
for bug-gnu-emacs@HIDDEN; Tue, 28 Apr 2026 10:03:23 -0400
Received: from outbound.lsu.edu ([130.39.6.46] helo=relay.lsu.edu)
by eggs.gnu.org with esmtp (Exim 4.90_1)
(envelope-from <eekopp@HIDDEN>) id 1wHj1y-0008Nl-Ea
for bug-gnu-emacs@HIDDEN; Tue, 28 Apr 2026 10:03:23 -0400
Received: from cyc2.ece.lsu.edu (cyc2.ece.lsu.edu [96.125.114.179])
by relay.lsu.edu (Postfix) with ESMTPS id 6BFB8600219
for <bug-gnu-emacs@HIDDEN>; Tue, 28 Apr 2026 09:03:15 -0500 (CDT)
From: David Koppelman <koppel@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Native compilation skipped when plugged in.
X-Debbugs-Cc:
Date: Tue, 28 Apr 2026 09:03:15 -0500
Message-ID: <yg5lde7mbbw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=130.39.6.46; envelope-from=eekopp@HIDDEN;
helo=relay.lsu.edu
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 3.5 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: With (setq native-comp-async-on-battery-power nil) native
compilation is skipped when my laptop is plugged in. The following patch fixes
the problem: diff --git a/lisp/emacs-lisp/comp-run.el
b/lisp/emacs-lisp/comp-run.el
index f329d627392..8ccb7a78013 100644 --- a/lisp/emacs-lisp/comp-run.el +++
b/lisp/emacs-lisp/comp-run.el @@ -203,9 +203,11 @@ na [...]
Content analysis details: (3.5 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
2.5 TO_NO_BRKTS_PCNT To: lacks brackets + percentage
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
With (setq native-comp-async-on-battery-power nil) native compilation
is skipped when my laptop is plugged in. The following patch fixes the
problem:
diff --git a/lisp/emacs-lisp/comp-run.el b/lisp/emacs-lisp/comp-run.el
index f329d627392..8ccb7a78013 100644
--- a/lisp/emacs-lisp/comp-run.el
+++ b/lisp/emacs-lisp/comp-run.el
@@ -203,9 +203,11 @@ native--compile-skip-on-battery-p
;; because power users often configure their batteries
;; to stop charging at less than 100% as a way to
;; extend the lifetime of their battery hardware.
- (string= (cdr (assq ?b res)) "+")
- (member (cdr (assq ?B res)) '("charging" "pending-charge"))
- (not (string= (cdr (assq ?B res)) "discharging")))))))
+ (and
+ (not (string= (cdr (assq ?b res)) "+"))
+ (not (member (cdr (assq ?B res))
+ '("charging" "pending-charge")))
+ (string= (cdr (assq ?B res)) "discharging")))))))
(defvar comp-files-queue ()
"List of Emacs Lisp files to be compiled.")
The problem occurred on Emacs built from a recent repo pull. I'm
sending this bug report from a different computer so details won't
exactly match.
David Koppelman <koppel@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#80922; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.