From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.bugs Subject: bug#30080: 24.5; write-region can reset idle time Date: Fri, 12 Jan 2018 02:36:52 +0100 Organization: Decebal Computing Message-ID: <87efmv97t7.fsf@munus.decebal.nl> References: <87fu7cnm9o.fsf@munus.decebal.nl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515720983 23061 195.159.176.226 (12 Jan 2018 01:36:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 01:36:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: 30080@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 12 02:36:18 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 1eZoGS-00053g-4F for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jan 2018 02:36:12 +0100 Original-Received: from localhost ([::1]:59712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZoIP-0005sM-R4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 20:38:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZoIJ-0005ra-2D for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 20:38:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZoIF-0005D5-2z for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 20:38:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZoIE-0005Cr-V4 for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 20:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZoIE-0003dh-Iq for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 20:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Cecil Westerhof Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jan 2018 01:38:02 +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.151572102313921 (code B ref 30080); Fri, 12 Jan 2018 01:38:02 +0000 Original-Received: (at 30080) by debbugs.gnu.org; 12 Jan 2018 01:37:03 +0000 Original-Received: from localhost ([127.0.0.1]:52737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZoHG-0003cT-Kk for submit@debbugs.gnu.org; Thu, 11 Jan 2018 20:37:02 -0500 Original-Received: from relay01.kovoks.nl ([176.9.21.13]:36938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZoHF-0003bz-Hf for 30080@debbugs.gnu.org; Thu, 11 Jan 2018 20:37:02 -0500 Original-Received: from cloud01.kovoks.nl ([91.230.245.58]) by relay01.kovoks.nl with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1eZoH8-00068b-HU; Fri, 12 Jan 2018 02:36:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by cloud01.kovoks.nl (Postfix) with ESMTP id 475C2132001; Fri, 12 Jan 2018 02:36:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cloud01.kovoks.nl Original-Received: from cloud01.kovoks.nl ([127.0.0.1]) by localhost (cloud01.kovoks.nl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vhNBsQ-ONmO7; Fri, 12 Jan 2018 02:36:53 +0100 (CET) Original-Received: from MailServer.decebal.nl (203-114-128-083.dynamic.caiway.nl [83.128.114.203]) (Authenticated sender: send@decebal.nl) by cloud01.kovoks.nl (Postfix) with ESMTPSA id 59D7D16858; Fri, 12 Jan 2018 02:36:53 +0100 (CET) Original-Received: by MailServer.decebal.nl (Postfix, from userid 1000) id 0D94E8C9AC; Fri, 12 Jan 2018 02:36:53 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Thu, 11 Jan 2018 18:49:12 -0500") 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:142065 Archived-At: Stefan Monnier writes: >> (global-auto-revert-mode 1) > > Ha, I think you have your culprit right there: my crystal ball says that > if you have auto-revert active on the file you modify with > `write-region` (or maybe even just a file in the same directory) any > modification to the file (e.g. via `write-region`) will send > a pseudo-event, which Emacs's command-loop will confuse for an actual > user event! The problem being that until the 19th of December it worked without a problem. I did not change my .emacs. Also (desktop-save-mode 1) has the same effect. When I do not have (global-auto-revert-mode 1), but I do have (desktop-save-mode 1), then also write-region will reset idle time. It is even more funny: when I play a video with mpv, idle time is also reset. And this I find really odd. -- Cecil Westerhof Senior Software Engineer M Cecil@Decebal.nl LinkedIn: http://www.linkedin.com/in/cecilwesterhof