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.help Subject: Re: when does `gcs-done' is updated? Date: Fri, 01 Sep 2023 16:19:04 +0300 Message-ID: <83sf7yav5j.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12361"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 01 15:20:00 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qc447-00031U-0u for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Sep 2023 15:19:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc43W-00057J-Cj; Fri, 01 Sep 2023 09:19:22 -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 1qc43U-00055c-Cl for help-gnu-emacs@gnu.org; Fri, 01 Sep 2023 09:19:20 -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 1qc43U-0004ef-3m for help-gnu-emacs@gnu.org; Fri, 01 Sep 2023 09:19:20 -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=4e38hx0NNJ97mt/i0dkW5cbi8eqYakctYuwzU9w7RJE=; b=GtEfeH1Off7k 1ytdJJhrXbyYlLq17Je7P3RlAqwl8cobyYL0j3crzLmc/L9Ue2hd/wrw27b8qJHNko6kwyOiGwdWN c6nAeJumXWQyy1CUqKFjQdxXYGkvmngH3/uJ38ZYobF69amyi8ZSA7dB0VzZ726UeQYVcGgCxX1is jPuDXAwvu5xpoHm9ZScw+a276lOUo/nBDopJjf8w3/gY9HqErk/oQkltIEaf1UcvDMvXilBTMVEDN woqP7WV9aF26ZHm46tgOUoLo9PBkSsLJUKImmEPz0bmde93Mh5VwvRjBsrcRb/HRbz7gDeSzyCadQ Wg4JoEn8e2Ioey+QuY0LQw==; In-Reply-To: (message from Shynur Xie on Fri, 1 Sep 2023 12:03:01 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145053 Archived-At: > From: Shynur Xie > Date: Fri, 1 Sep 2023 12:03:01 +0000 > msip_labels: > > I wrote a function which runs each time Emacs collects garbage, so I > added it to `post-gc-hook'. > > That function cares about the value of `gcs-done' and the value of > `gc-elapsed'. > But it seems that `gcs-done' is updated after `post-gc-hook' is executed? > > Is this an intended behavior? If so, I think the docstring of these > variables (such as `gcs-done', `gc-elapsed', ...) need to clarify when > the variable is updated. This should be posted either to emacs-devel or as a bug report.