From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Support for explicitly resetting the idle timer? Date: Sat, 27 Nov 2021 13:33:34 +0200 Message-ID: <83o865zvch.fsf@gnu.org> References: <1d3c782b-6e79-8deb-e34d-f53b94f2fd9c@gmail.com> <83bl2610wt.fsf@gnu.org> <835yse0y70.fsf@gnu.org> <83zgppzz5z.fsf@gnu.org> <83v90dzx5w.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Campbell Barton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 12:34:20 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqvyF-0005aO-UC for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 12:34:20 +0100 Original-Received: from localhost ([::1]:32840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqvyE-0005Wk-N7 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 06:34:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqvxP-0004SH-B4 for emacs-devel@gnu.org; Sat, 27 Nov 2021 06:33:27 -0500 Original-Received: from [2001:470:142:3::e] (port=55892 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqvxP-0006kn-2b; Sat, 27 Nov 2021 06:33:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kpalLwfSDKiGMYxEHw+rTjHkYUl+NZ2fmOoU8IV7Ax0=; b=mWlbyFUc4zyJ iLFeZ0I89sxWIHR3n5PAGuIGO33CD/0T40F/E9Msig2/wRXE2edpiJqKFnabKGY9z5oi7YqURnZ3T HGfbFIFfSrOcxuy9JhxrFpvpLHOAAAzSAWbBuA9rDIjRGAQlUJ2y8xD67Rf9vtrgaywc0MMFGLJ59 PEHn6+TSQLRmGjGw32qG5/yQjBsB9gM+pss7RvBPrvYJsms0OkvZwHCWAyYTD0uP2fhOJ6zqX+VN2 jd9vTpo4S/nJsdjg3otakW4MP8eQBlzd6T6zhmQLEPQLrQcjWOmRbEXH8qP0mcgLG3ziTlE4mM2Lj Kfwj6fM/TM9knz5ZPbbUlw==; Original-Received: from [87.69.77.57] (port=3729 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqvxO-0001u3-QD; Sat, 27 Nov 2021 06:33:27 -0500 In-Reply-To: (message from Campbell Barton on Sat, 27 Nov 2021 22:16:10 +1100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280328 Archived-At: > From: Campbell Barton > Date: Sat, 27 Nov 2021 22:16:10 +1100 > Cc: Emacs developers > > > > Ah, right. There is an interactive function bound to a key which runs > > > track-mouse ... etc. > > > > So now I wonder how come the idle timers run for you. Perhaps the > > command you mention activates track-mouse and exits? > > It also seems strange to me, but it's not exiting - it runs > track-mouse and calls read-event & redisplay, just double checked - > idle timers are definitely running inside the track-mouse block (which > is within the command). Probably because your command calls read-event, which re-enters the input processing loop, and can wait for input.