GNU bug report logs - #30080
24.5; write-region can reset idle time

Previous Next

Package: emacs;

Reported by: Cecil Westerhof <Cecil <at> decebal.nl>

Date: Thu, 11 Jan 2018 21:02:02 UTC

Severity: normal

Found in version 24.5

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Forwarded to http://lists.gnu.org/r/help-gnu-emacs/2018-01/msg00143.html

Full log


View this message in rfc822 format

From: Cecil Westerhof <Cecil <at> decebal.nl>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 30080 <at> debbugs.gnu.org, monnier <at> IRO.UMontreal.CA
Subject: bug#30080: 24.5; write-region can reset idle time
Date: Fri, 12 Jan 2018 15:37:49 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Cecil Westerhof <Cecil <at> decebal.nl>
>> Cc: monnier <at> IRO.UMontreal.CA,  30080 <at> 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.

But it is not desktop-save-mode that does it. As long as I do no
write-region the idle-time is not reset. So desktop-save-mode does not
reset idle time, but desktop-save-mode makes write region reset idle
time.

>> - 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.

Well, I have to ask on the Debian mailing list then.


> 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.

I just tried it on an Ubuntu system and I get the same results.


> 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.

How do I get that?

-- 
Cecil Westerhof
Senior Software Engineer
M Cecil <at> Decebal.nl

LinkedIn: http://www.linkedin.com/in/cecilwesterhof




This bug report was last modified 7 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.