[Top][All Lists]

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

bug#15561: periodic timer stops running

From: Peter Münster
Subject: bug#15561: periodic timer stops running
Date: Wed, 05 Mar 2014 18:13:33 +0100
User-agent: Gnus/5.13001 (真 Gnus v0.10) Emacs/24.3.50 (gnu/linux)

Perhaps related:

The following function make some beeps for some seconds. It is called
from a timer. Sometimes, the `cancel-timer' does not work, and emacs
continues to beep.

--8<---------------cut here---------------start------------->8---
(defun org-notify-action-ding (plist)
  "Make noise."
  (let ((timer (run-with-timer 0 1 'ding)))
    (run-with-timer (or (plist-get plist :duration) 3) nil
                    'cancel-timer timer)))
--8<---------------cut here---------------end--------------->8---

Or is this another problem/bug?

TIA for any help,

reply via email to

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