From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Should `cancel-timer' use `delete' instead of `delq'? Date: Tue, 05 Sep 2006 20:59:22 -0400 Message-ID: References: <87zmdfytmw.fsf@catnip.gol.com> <85d5aaj7uk.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157504392 3301 80.91.229.2 (6 Sep 2006 00:59:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 00:59:52 +0000 (UTC) Cc: Emacs-Devel , Drew Adams , Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 06 02:59:52 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKllc-0007RW-25 for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 02:59:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKllb-0000bc-OQ for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 20:59:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKllO-0000WK-Mh for emacs-devel@gnu.org; Tue, 05 Sep 2006 20:59:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKllN-0000Qv-0G for emacs-devel@gnu.org; Tue, 05 Sep 2006 20:59:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKllM-0000QN-Rc for emacs-devel@gnu.org; Tue, 05 Sep 2006 20:59:32 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKllL-0006mk-Hh; Tue, 05 Sep 2006 20:59:31 -0400 Original-Received: from localhost ([70.55.145.157]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060906005928.ZXIJ13241.tomts10-srv.bellnexxia.net@localhost>; Tue, 5 Sep 2006 20:59:28 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 1A23A8471; Tue, 5 Sep 2006 20:59:22 -0400 (EDT) Original-To: David Kastrup In-Reply-To: <85d5aaj7uk.fsf@lola.goethe.zz> (David Kastrup's message of "Tue, 05 Sep 2006 23:56:19 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59405 Archived-At: > Does not sound too hot to me: after all, garbage collection happens > nondeterministically, and there are valid cases for repetitive timers > that will never need to be cancelled (a running clock somewhere, or a > yearly birthday reminder...). It would surprise the user if his > timers suddenly stopped without reason when they ran perfectly well > for a while. Yes, just like reclamation of open-files shouldn't be done by the GC, this should only be a debugging aid: it should warn about "lonely timers" rather than kill them. Stefan