Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting a list of running Emacs timers

Tags:

emacs

elisp

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.

like image 363
Carcophan Avatar asked Jul 26 '12 13:07

Carcophan


1 Answers

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

like image 102
Nicolas Dudebout Avatar answered Oct 02 '22 17:10

Nicolas Dudebout