From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30080: 24.5; write-region can reset idle time Date: Fri, 12 Jan 2018 15:53:47 +0200 Message-ID: <83d12f2nf8.fsf@gnu.org> References: <87fu7cnm9o.fsf@munus.decebal.nl> <87efmv97t7.fsf@munus.decebal.nl> <83r2qv30i6.fsf@gnu.org> <874lnr8iu8.fsf@munus.decebal.nl> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515765200 6384 195.159.176.226 (12 Jan 2018 13:53:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 13:53:20 +0000 (UTC) Cc: 30080@debbugs.gnu.org, monnier@IRO.UMontreal.CA To: Cecil Westerhof Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 12 14:53:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZzlc-0000sg-Fd for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jan 2018 14:53:08 +0100 Original-Received: from localhost ([::1]:43135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZznc-0000TZ-8y for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jan 2018 08:55:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZznV-0000Sn-BZ for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2018 08:55:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZznS-0001cy-6F for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2018 08:55:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45120) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZznS-0001cl-2G for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2018 08:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZznR-0006ky-SB for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2018 08:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jan 2018 13:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30080 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30080-submit@debbugs.gnu.org id=B30080.151576526225906 (code B ref 30080); Fri, 12 Jan 2018 13:55:01 +0000 Original-Received: (at 30080) by debbugs.gnu.org; 12 Jan 2018 13:54:22 +0000 Original-Received: from localhost ([127.0.0.1]:53017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZzmo-0006jm-HJ for submit@debbugs.gnu.org; Fri, 12 Jan 2018 08:54:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZzmm-0006jW-1f for 30080@debbugs.gnu.org; Fri, 12 Jan 2018 08:54:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZzmd-000116-PF for 30080@debbugs.gnu.org; Fri, 12 Jan 2018 08:54:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZzmd-00010w-LX; Fri, 12 Jan 2018 08:54:11 -0500 Original-Received: from [176.228.60.248] (port=3797 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eZzmc-0002o1-S2; Fri, 12 Jan 2018 08:54:11 -0500 In-reply-to: <874lnr8iu8.fsf@munus.decebal.nl> (message from Cecil Westerhof on Fri, 12 Jan 2018 11:36:15 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142082 Archived-At: > From: Cecil Westerhof > Cc: monnier@IRO.UMontreal.CA, 30080@debbugs.gnu.org > Date: Fri, 12 Jan 2018 11:36:15 +0100 > > > desktop-save-mode writes the desktop file from time to time, and it > > uses an idle timer, so I think this explains that. > > I have two problems with that: > - I do not think that it is done every minute, or less. And the reset > is done on the moment of the write-region of my command. So does not > directly relate to the writing of the desktop file. desktop.el auto-saves when something in the window/buffer configuration changes, no matter how frequently that happens. The idle timer run by desktop.el uses the same timeout value as auto-save, which is 30 sec by default. Maybe these facts will allow you to find out why desktop-save-mode has that effect. > - Before 19 December I did not have this behaviour. So it started > after an update. It did not work like this for more as five years, > but started the 19th of December 2017. I guess you will have to find out what changed with that update. No one else except yourself can do that. Maybe it's some change in the kernel, or in glibc, or in inotify. FWIW, I cannot reproduce your problem, neither in "emacs -Q" nor if I turn on global-auto-revert-mode or desktop-save-mode, neither on GNU/Linux nor on MS-Windows. So this is most probably something specific to your system. What is the value of system-configuration-features in that build, btw? Maybe some of the features is responsible for that, and my builds are without it.