emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing timers and buffer local variables


From: Lennart Borgman (gmail)
Subject: Re: Killing timers and buffer local variables
Date: Mon, 28 Apr 2008 17:17:18 +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

Johan Bockgård wrote:
Stefan Monnier <address@hidden> 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")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]