From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ndame Newsgroups: gmane.emacs.bugs Subject: bug#39668: 26.2; timer-list and timer-idle-list are undocumented in the Elisp manual Date: Tue, 18 Feb 2020 19:36:08 +0000 (GMT) Message-ID: References: <83sgj7lp5o.fsf@gnu.org> <83r1yrlmsr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1878_1557426663.1582054568758" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="32659"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "39668@debbugs.gnu.org" <39668@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 18 20:45:15 2020 Return-path: Envelope-to: geb-bug-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 1j48ny-0008MP-CE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 20:45:14 +0100 Original-Received: from localhost ([::1]:41170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j48nx-0003hg-BT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 14:45:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38941) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j48nn-0003eb-0y for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 14:45:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j48nm-0005ml-3Z for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 14:45:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35325) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j48nm-0005mC-16 for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 14:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j48nl-0002LV-To for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 14:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ndame Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2020 19:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39668 X-GNU-PR-Package: emacs Original-Received: via spool by 39668-submit@debbugs.gnu.org id=B39668.15820550688960 (code B ref 39668); Tue, 18 Feb 2020 19:45:01 +0000 Original-Received: (at 39668) by debbugs.gnu.org; 18 Feb 2020 19:44:28 +0000 Original-Received: from localhost ([127.0.0.1]:41298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j48nD-0002KS-Kv for submit@debbugs.gnu.org; Tue, 18 Feb 2020 14:44:27 -0500 Original-Received: from fmfe22.onbox.hu ([46.107.16.227]:44332 helo=web-out.onbox.hu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j48nA-0002KD-Qt for 39668@debbugs.gnu.org; Tue, 18 Feb 2020 14:44:25 -0500 X-fm-smtp-source: yes Original-Received: from localhost (localhost [178.164.166.72]) by web-out.onbox.hu (Postfix) with SMTP id 48MWWk3SKPzcQp; Tue, 18 Feb 2020 20:44:18 +0100 (CET) In-Reply-To: <83r1yrlmsr.fsf@gnu.org> X-AccountId: 57978162 X-Originating-Ip: 178.164.166.72 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjeekgdduvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffkjghfufggtghisegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppedujeekrdduieegrdduieeirdejvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopedpihhnvghtpedujeekrdduieegrdduieeirdejvddpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176208 Archived-At: ------=_Part_1878_1557426663.1582054568758 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =C2=A0 > Why do you need to access the active timers? I wanted only to check the existing timers, not modify them, so I needed only read only access. I don't modify anything. I use this to avoid starting a timer if one is started already. So I just check the timer list for the function names if it already contains=C2=A0 my function. If so then I don't start a timer, because it's already done. So the timer list eliminates the need of me haveing to store the timer in a= variable, because the list tells me if it's already active. =C2=A0 ------=_Part_1878_1557426663.1582054568758 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit  
> Why do you need to access the active timers?

I wanted only to check the existing timers, not modify them,
so I needed only read only access. I don't modify anything.

I use this to avoid starting a timer if one is started already. So I just
check the timer list for the function names if it already contains 
my function. If so then I don't start a timer, because it's already done.

So the timer list eliminates the need of me haveing to store the timer in a variable,
because the list tells me if it's already active.

  ------=_Part_1878_1557426663.1582054568758--