From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Function write-region resets idle time Date: Thu, 11 Jan 2018 20:05:40 +0200 Message-ID: <837eso46ff.fsf@gnu.org> References: <87r2qw9tpi.fsf@munus.decebal.nl> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515693878 29102 195.159.176.226 (11 Jan 2018 18:04:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Jan 2018 18:04:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 11 19:04:34 2018 Return-path: Envelope-to: geh-help-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 1eZhDI-0006z9-BB for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 19:04:28 +0100 Original-Received: from localhost ([::1]:59763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZhFH-0001IF-T1 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 13:06:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZhEX-0001CC-Ul for help-gnu-emacs@gnu.org; Thu, 11 Jan 2018 13:05:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZhEV-0000pk-8h for help-gnu-emacs@gnu.org; Thu, 11 Jan 2018 13:05:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZhEV-0000pd-5x for help-gnu-emacs@gnu.org; Thu, 11 Jan 2018 13:05:43 -0500 Original-Received: from [176.228.60.248] (port=3201 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eZhEU-0002eI-LL for help-gnu-emacs@gnu.org; Thu, 11 Jan 2018 13:05:43 -0500 In-reply-to: <87r2qw9tpi.fsf@munus.decebal.nl> (message from Cecil Westerhof on Thu, 11 Jan 2018 18:43:53 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115656 Archived-At: > From: Cecil Westerhof > Date: Thu, 11 Jan 2018 18:43:53 +0100 > > I found a strange problem: write-region resets idle-time. But only > after the calling function has returned. ??? Any Lisp you run resets idle-time. Idleness starts when Emacs gets to its command loop and finds that there's no pending input. It ends when there's some input event that causes the command loop to run the Lisp interpreter. In your case, the input event is supplied by the timer you set up. So why is what you discovered surprising, let alone a problem? Am I missing something?