26

I've created a timer and stored a reference to it in Emacs with

(setq my-timer-store (run-at-time "1 min" 900 'my-func))

I usually execute this elisp in the morning and then stop it from running overnight by executing

(cancel-timer my-timer-store)

Unfortunately I started the timer twice (without cancelling it in between) so I no longer have a reference to the first one I started and therefore I can't cancel it. Is there a way of listing all the running timers so I can clean up the one I left running.

Carcophan
  • 1,508
  • 2
  • 18
  • 38

1 Answers1

35

The timers seem to be stored in timer-list and timer-idle-list.

Nicolas Dudebout
  • 9,172
  • 2
  • 34
  • 43