From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Killing timers and buffer local variables Date: Mon, 28 Apr 2008 17:17:18 +0200 Message-ID: <4815EA7E.8050806@gmail.com> References: <48132C76.4090108@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1209395993 25904 80.91.229.12 (28 Apr 2008 15:19:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2008 15:19:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 28 17:20:29 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JqV7T-0005kg-HU for ged-emacs-devel@m.gmane.org; Mon, 28 Apr 2008 17:18:19 +0200 Original-Received: from localhost ([127.0.0.1]:50804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqV6m-0000tf-PM for ged-emacs-devel@m.gmane.org; Mon, 28 Apr 2008 11:17:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqV6h-0000tE-Oo for emacs-devel@gnu.org; Mon, 28 Apr 2008 11:17:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqV6d-0000sV-BG for emacs-devel@gnu.org; Mon, 28 Apr 2008 11:17:30 -0400 Original-Received: from [199.232.76.173] (port=39718 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqV6d-0000sQ-2S for emacs-devel@gnu.org; Mon, 28 Apr 2008 11:17:27 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JqV6d-0004a6-0L for emacs-devel@gnu.org; Mon, 28 Apr 2008 11:17:27 -0400 Original-Received: from c83-254-150-27.bredband.comhem.se ([83.254.150.27]:61553 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JqV6a-0003tI-8m for emacs-devel@gnu.org; Mon, 28 Apr 2008 17:17:24 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080428-0, 2008-04-28), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.150.27 X-Scan-Result: No virus found in message 1JqV6a-0003tI-8m. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JqV6a-0003tI-8m 4c89c4163546c6663ccc18db10b4d2eb X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:96069 Archived-At: Johan Bockgård wrote: > Stefan Monnier writes: > >>> If a timer is referenced with a buffer local variable and the corresponing >>> buffer goes away it is quite cumbersome to kill the timer if it is >>> a periodic timer. >>> How about adding a self referencing functions for timers to make this >>> easier, something like (this-timer)? >> That's a good idea. Patch welcome, > > (defun timer-this-timer () timer-event-last) That was a fast one ;-) Maybe it is sufficient to document this in (info "(elisp) Timers")