Subject: bug#30080: 24.5; write-region can reset idle time

From: Stefan Monnier <[email-masked]>
Date: Thu, 11 Jan 2018 18:49:12 -0500

>     (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!

        Stefan