From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Fwd: idle exit hook Date: Wed, 22 Jul 2020 13:32:42 +0200 Message-ID: <20200722113242.577d4nfx4wbbbxxs@ergus> References: <20200722113242.577d4nfx4wbbbxxs.ref@ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30796"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 22 13:33:25 2020 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 1jyD00-0007ut-T6 for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Jul 2020 13:33:24 +0200 Original-Received: from localhost ([::1]:57068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyCzz-0000Pv-UZ for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Jul 2020 07:33:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyCzT-0008QU-Vz for emacs-devel@gnu.org; Wed, 22 Jul 2020 07:32:52 -0400 Original-Received: from sonic306-1.consmr.mail.bf2.yahoo.com ([74.6.132.40]:37153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyCzR-00010c-0R for emacs-devel@gnu.org; Wed, 22 Jul 2020 07:32:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1595417567; bh=jaxCLVjr4Kqc5igX4FxVMfOxjn8vdWADSOsmRyKC3oY=; h=Date:From:To:Subject:References:From:Subject; b=FXh9IyxNtvcjvvAHiR0Ic1SYwBK/5AMI+Wr+HZOZaFzMUoJHHYdB8hEWakCZwWfU28b4RGI/qfzjzyoBNCjOk59AZgqsuTxAQeBORJlxmOr6RwiR1l4DsIoJ7cWp2sNtalsC79cmkf6ZXm2DI8RKE2MJcacVe6yvHh68qKpnzsbEbXtGLz9i2OKD3+/YnAcO5YtSZ1DuPxG7bGzIIAqgI2ycXooeZCZVD7zMo6hzeUrJvcenpvogmhzUSRZivVOcu/Z0EyhoOlmvZKFRs9HkK7TZ53rH94E1tPMQgyfzoy1GZDM80Xp74MZhLBPeRAaO61KPX6vTqHmZCOkEbeXTzQ== X-YMail-OSG: nZDIxUQVM1mZy62Gy9WNebdsg.L0bQ17w3iJHNeeug.6DNkzX3DlHK7Pm13JD1s AYYmWLMT1BmvXGFNNCJsEJ5Yf.nulmZaN_4jl7pcP6Mnhma557tHNisJdC3TwMlH.i6PjFh0y1t1 plCOGgN1OpNwrU_Urie56M4Ul8q95b.FtxVmX6aTmMEd0mpT3Enhgzrt53IpVyy9LUdvT24BE0d. hDVkye98ZPk9QMxHMadrNZVFmKR8FPmnzrwpcSf7Zy17qvnRabwbs8TNezI25O86l8LScCrOSoV5 IDVShaaLan0GBtppuzVWedzs8vniy3.lFzQXUioZXw8jnPjXSYpJ.QGluLsimr65CnuXpx8lQRsz N7rkw05Oml8pkKqNsB6yqkzC0dAFN_JutRNQJjZuDVsD8H3VyKgsgHSaljFo4A.2_.k_DRMcHd4E us8sjd3LwTCl2T9JJbM_A14K5dCBG4QfBTSWk.Vb.mX9.itHD1wfiv8oppn08kZ_.Pdc9t9BAbT8 D6JVgga9N29YnL1k1CVHQOkLkFohrWo_AAAHQSLhu2gPPmaO4p7u3WdIQe5NCimiCYQ1sV4iZwpy fxobmcmlGgScfIO1CL1JGugIk_EYhOipDf3oFBHTfb1ds5VQ0wuknCmt.PNtYpqyrv9Q00SEArKW dnuHAVLHpdjs7hdPJqzL66r0frs9T0rfyGgxXDQzAujuQ.IQwRwvD_qAlyMLiGaAC7_xlrKZhtKM 8hgrfXnOWHfB1iuh536nDkVlZXh5Ue4jCR5JQ1UFslNzKxaFIGnZCuUWq9kv7YrS7CiZ0rKt.NJD X9PVsMOGGNJLVvpi92g7jpotMY_QdLWLJ2YS6t5_ii Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Wed, 22 Jul 2020 11:32:47 +0000 Original-Received: by smtp418.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 71cb4adf38c3fdae8b4b4c011398d9b1; Wed, 22 Jul 2020 11:32:44 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.16271 hermes_aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.132.40; envelope-from=spacibba@aol.com; helo=sonic306-1.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/22 07:32:47 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:253154 Archived-At: Hi: I recently saw a question in reddit but the answer there was not clear (or maybe it requires a feature request) Is there an idle-time-exit-hook? or, what's the canonical method to call a function after breaking an idle? something like on-idle-exit? So far I understand that having such a hook could produce some performance penalty but not more than post-command-hook for example. Any way, adding some restrictions (running it only once || reset the hooks list on every idle start/end or just documenting it properly) could solve the problem.. does it makes sense? The idea came to me when trying to implement my own version of idle-highlight-mode to propose to add it to vanilla. I would like to provide a different behaviour. Best, Ergus