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.help Subject: idle exit hook Date: Tue, 21 Jul 2020 20:01:47 +0200 Message-ID: <20200721180146.huna7amd6rhftfuz@ergus> References: <20200721180146.huna7amd6rhftfuz.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="21318"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 21 20:02:54 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1jxwbO-0005S6-Bb for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Jul 2020 20:02:54 +0200 Original-Received: from localhost ([::1]:41954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxwbN-0000pp-7J for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Jul 2020 14:02:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxwaV-0000nZ-Ex for help-gnu-emacs@gnu.org; Tue, 21 Jul 2020 14:02:00 -0400 Original-Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]:45611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxwaR-0003wL-II for help-gnu-emacs@gnu.org; Tue, 21 Jul 2020 14:01:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1595354512; bh=8XZHnLSnDgWjga3MA8Vaoj/gkN1VBudAGohFv24+wvU=; h=Date:From:To:Subject:References:From:Subject; b=HwAL8+z9r8hYrRFkxcLQ2Md8PkHsP9KUYABJkyajKelgoYn5QfVyXBFdqEmNv3xT48CQUqelCi+tLWnUBLSYpXAOvPD4pLZIAnkNZAE+A9Bg+yV7IkBcxVmDm47eLIc36oZIaqJLdtdi3ZqyvejDmyK+rDiYovKxWmA/PnjiVgleNQ+QsbUSH5AnryNS9kxaSIIIg7wq8KGeVZVIKiaN2Hn0qCiRVHktC1WMD3mH1csXwJPh1nkQ+2HHSFakvdQ70WOxoqF3V1KdZs0M/kZWDoW6V1Df4jfKNcAZXL1QTe1Yd6CZA0CYx1SxGXemVUHulXNFBu0A7tV7ih51x3hVOg== X-YMail-OSG: E7iP9QsVM1kmcxUaH7uYbpVbvNFlWevZLi0eJ8Bye3VTBkDbbzOBt3YhuoDcGc6 Ss5KxSay_CrVWB1msNqJh85K2vXsazzdEuNvmqsnomr79yt0NvU_PNEETsotrvt1CBOFLeXqwQZh 2Jmci1orlm6ug3XGLdJ0TtZksSz64TMfaWUsGn6ja6hE7c.iH7D9MZZc_R7SyS78NAcTgKUE0zhW vJAHv9x375eAD5kGpZjB4a_yPoi.aakqgQPgjThwFmRSx8hiVVVXAq7IwalHNjKr5KGnDhNlcyGv Nk0noen0nbzi4shtsNFG4fyaeNZkPQVzDCQEsOJ6vEUNdoouw3Ki1ldOoRqcHnbVPmYu3WxHqzC2 8KL7dENRHfBY7E5OQmfExuEFle2fp.TMyo4FZpaNoXX5ab3im7hA0otZ.VgUA_PVLXSGA6YufMk4 Cdx8xrXM2Qlz68YL1kd785TlPx2Z..Xpo0AMchU0S2MBZk8N0hObVbZg5rV7NBcNU6OJCpNeZnJw PD2vs1VGMZLS0fkHzQ9V713XacGQoGIe0yBNb05eMHFWyk8vTGQYk2km3XEIIfRkt6YvSlwhdVEs MsxfCy0UmE84cMBIZIYmTPdveP2IjrwSBg6dC3wczFjIzA5UBJ5Su1Ch6_Epau3yHhHknt_RQXlr UlKcAsf2vh6dKXwXOQ0LvRx2_wzKWmitKVmMP3Jz19m7zdzGIYNlBHhKtKaph_qILUZsIpSEFrnA JqGRsRvzEtAA3KJR8gWbrYzwGaWJtXcNzvfR69DKY0Rc3XNOeKevWPWD7zuDeSIDEHEr5trw85kY 0pOBurT_G93HfFfWiiW9uvPERCgZYD6IzXImPTLqgy Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Tue, 21 Jul 2020 18:01:52 +0000 Original-Received: by smtp426.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f2cce83b6ce9c58f85b83e0077f7861a; Tue, 21 Jul 2020 18:01:49 +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.128.32; envelope-from=spacibba@aol.com; helo=sonic304-9.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/21 13:40:14 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123570 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? Best, Ergus