From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: timer.el API Date: Mon, 03 Oct 2022 22:59:18 +0200 Message-ID: <87ill0zkrd.fsf@web.de> References: <87o7xc1qbh.fsf@web.de> <831qu8dqrx.fsf@gnu.org> <87bktbciup.fsf@web.de> <875yjfo105.fsf@web.de> <87fsii0vvp.fsf@web.de> <87zgge3vzv.fsf@web.de> <87y1vwq0su.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36316"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Madhu , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 00:05:19 2022 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 1ofTYt-0009Gq-Fo for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 00:05:19 +0200 Original-Received: from localhost ([::1]:37022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofTYq-0001C9-Ls for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 18:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofSXH-0005h1-8p for emacs-devel@gnu.org; Mon, 03 Oct 2022 16:59:36 -0400 Original-Received: from mout.web.de ([217.72.192.78]:59731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofSXF-0007pd-Go for emacs-devel@gnu.org; Mon, 03 Oct 2022 16:59:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1664830760; bh=8QrBQSvmAaNVi9nA3h77tovBbCUxTohvlkZ3l5wW64U=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=qxChOMrO6DTRn2/5K8UF+owscKRvF4N/Gu3mHS/12DOivQGdNCeT50gfo5De34JJA n4nnSM530iR5rBmvc27Z988r3ou8lg48jK4HQIWsrGdzk7O3GZ6A77n51Jwgxn6ZT+ g2SFnazVYSpDt89Zo8MDwUNX8yupjU1Iq1hvjG8zIUpJf8oynYawBasmVhqv5293gz XUO40OqL0zct5yzQ4DphwUV30PSAv2k5oD8kaYby8KsnmPtP2GHn11xUx5PheSTsEj VDo7LmkzCgcwhOu982lpi6q9Jo8koldv8t59WgY6kVLLOw4Vm2FMOEJYQa1ym+oGkh CsEGG3a89RAMg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([94.222.172.180]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MIyeG-1ouEWg1MCI-00KhEz; Mon, 03 Oct 2022 22:59:20 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 21 Sep 2022 10:17:30 -0400") X-Provags-ID: V03:K1:mdEzDgWx6r2OnRELUK+YsZXGTHpGNuVpZJhgKR33hqAUpTSDAJs x1HB8SUZIFHWfIVHWrA5T86ycTpW6p6scYX87CofavMdcu3RDnhE9mehUkMUZal63L+akjE MxREzR9RXAZd1DXihFygQOZ5kC8FJ8+9ucNia5hF/4IecjfWXZFAt83U+ozVb2FFM/Z/+4X EjsnGIzgq2YF99kbAAqEQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:6EOiMTuIW0M=:agmKy4Tp6ijvYXJjCH+S8h ocVK0iTvKAp/31s5hAvSmqWcO7Ib9KD754xHCjvJuBGpLgrkX2FhMvr0J3vEjsiyYj0Dg9FVO tn+MUEvrZ2BDmWaLim3Vf7yVOMSy54ioJtLlI/nWlqnt6hZhfx65hJlURxhT0Yt0EiN3GSoT7 fmrEV+A/fX9ldBknB2k7kyfgClimo0t8RY0i3Ji5oKvmy2AO3osMfncRvr+rF/l26bK9zvvtE dVTkI5sNEiGZafySamgXnbsfLHH5h10CSEyYsJIQRFeYc4cTGHo0UcCGfUe/g1wIkT63SbKE4 /k6QuyXBYkkarNiwhZl/ylOlqy4dhYWfPdRWFLvqFpHyChwrpOzx9tcyEdMbtFIe0y+D4oCAO qBU1dzMt8w8YQN3CiMaE8tZo7AR2PszKo162GpVumw11qrJc5EeR9Tr0sz19KBZUWFL1Jl/sJ iM+pdQtoQR2YO+RsdaGTJcL4IK5AknVEgkEdzGZUC/3hRDBWuYynXapqUNmrWW1xIomwGCXEw bXJm9H4rHoz/UqKTOg7hYPi+UvzJt7Xi521jywu0VMIkIkqj67pB12foBTh4TYcH3gupH/xW+ k/Ku63jzNtWTWBeWnXkTTApBJT68QXjJZoHW5zSOzSVs/JHe387vUC7ghP/n0KPMooYgt/yy+ 9O14Llm+RE/oAav+b10D1WinOX+y9biwGiBTOCZ7+blVzFbtOeEd2Slnj9a8S1utgGPU6qZJ3 4pEt6uQXIbsVAN7V7LYxnkmeUvNU3ZKtgklojfEDayWiw+yqP+6XR18/Xrif6cvfj324i9G0 Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.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:296800 Archived-At: Stefan Monnier writes: > And its effect is very poorly defined in its docstring. So whichever > behavior we choose for it, I'm sure someone can come up with > a legitimate case where that precise behavior is indeed needed. Madhu wrote: > The idea was to handle a "mode" where keystrokes would enter characters > in a "search string". the "mode" would timeout after a 10 seconds. If a > new character of the "search string" is read within the timeout period, > the timer is renewed ("respooled"). If a non "search string" character > is read, then the timer is cancelled and the "mode" exits. This is exactly the scheme I need now and then, and the only kind of task where I wanted `timer-activate'. > Someone=E2=84=A2 should probably take a step back, decide what the expose= d API > *should* be, rename the rest to use internal names, and then add > obsolete aliases to temporarily preserve backward compatibility. Maybe renaming `timer-activate' to `timer--activate' and implementing a solution for the above kind of requirement would already be a big part of the way? Michael.