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: Killing timers and buffer local variables Date: Sun, 27 Apr 2008 21:26:42 -0400 Message-ID: References: <48132C76.4090108@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209346017 32677 80.91.229.12 (28 Apr 2008 01:26:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2008 01:26:57 +0000 (UTC) Cc: Emacs Devel To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 28 03:27:33 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 1JqI9U-0000du-JY for ged-emacs-devel@m.gmane.org; Mon, 28 Apr 2008 03:27:32 +0200 Original-Received: from localhost ([127.0.0.1]:43272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqI8o-0000xm-1d for ged-emacs-devel@m.gmane.org; Sun, 27 Apr 2008 21:26:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqI8j-0000wY-Ed for emacs-devel@gnu.org; Sun, 27 Apr 2008 21:26:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqI8h-0000v7-Q9 for emacs-devel@gnu.org; Sun, 27 Apr 2008 21:26:44 -0400 Original-Received: from [199.232.76.173] (port=48657 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqI8h-0000v1-DS for emacs-devel@gnu.org; Sun, 27 Apr 2008 21:26:43 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JqI8h-0001lz-1m for emacs-devel@gnu.org; Sun, 27 Apr 2008 21:26:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuYCAIfEFEjO+IZzdGdsb2JhbACBU5AHASeXJg X-IronPort-AV: E=Sophos;i="4.25,713,1199682000"; d="scan'208";a="19512274" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 27 Apr 2008 21:26:42 -0400 Original-Received: from pastel.home ([206.248.134.115]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id IFC78942; Sun, 27 Apr 2008 21:26:42 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 67D4C8008; Sun, 27 Apr 2008 21:26:42 -0400 (EDT) In-Reply-To: <48132C76.4090108@gmail.com> (Lennart Borgman's message of "Sat, 26 Apr 2008 15:21:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:96036 Archived-At: > 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, Stefan PS: It'd be better to use the `timer-' prefix.