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: A whole lotta auto-saving going Date: Thu, 07 Jan 2021 16:55:28 +0200 Message-ID: <83ble0lrtr.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25526"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 07 15:56:25 2021 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 1kxWi8-0006XY-OG for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Jan 2021 15:56:24 +0100 Original-Received: from localhost ([::1]:33790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxWi7-0002Ex-Pd for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Jan 2021 09:56:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxWhE-0001h7-SH for emacs-devel@gnu.org; Thu, 07 Jan 2021 09:55:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57102) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxWhE-0007in-HQ; Thu, 07 Jan 2021 09:55:28 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1316 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kxWhD-0002uc-Nl; Thu, 07 Jan 2021 09:55:28 -0500 In-Reply-To: (message from Aaron Jensen on Wed, 6 Jan 2021 16:05:52 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:262684 Archived-At: > From: Aaron Jensen > Date: Wed, 6 Jan 2021 16:05:52 -0600 > Cc: Lars Ingebrigtsen > > > The past few days on the trunk, I'm seeing "Auto-saving...done" a whole > > lot more than before. Sometimes it's popping up every few characters > > I'm typing, which just seems unhelpful. > > > > I haven't investigated at all why this is happening -- is it immediately > > obvious to somebody what's going on? > > I too am seeing this in my emacs config in enh-ruby-mode. If I change > auto-save-interval to 0, it stops. So it appears that the > auto-save-interval is somehow broken. I suggest to put a breakpoint in Fdo_auto_save and see what invokes it and why. First, which code invokes it? Next, if it's indeed this place: if (commandflag != 0 && commandflag != -2 && auto_save_interval > 0 && num_nonmacro_input_events - last_auto_save > max (auto_save_interval, 20) && !detect_input_pending_run_timers (0)) { Fdo_auto_save (auto_save_no_message ? Qt : Qnil, Qnil); /* Hooks can actually change some buffers in auto save. */ redisplay (); } then why does it happen? Do we fail to update last_auto_save? or do we increment num_nonmacro_input_events too quickly for some reason? I presume that this doesn't happen in "emacs -Q", because I was unable to reproduce it. Then maybe some customizations cause this, directly or indirectly. For example, maybe some timers or subprocesses cause this.