Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个计时器并在 Emacs 中存储了对它的引用
(setq my-timer-store (run-at-time "1 min" 900 'my-func))
我通常在早上执行这个 elisp,然后通过执行来阻止它在一夜之间运行
(cancel-timer my-timer-store)
不幸的是,我启动了两次计时器(中间没有取消它),所以我不再引用我启动的第一个计时器,因此我无法取消它。有没有办法列出所有正在运行的计时器,这样我就可以清理我离开的那个。
计时器似乎存储在timer-list和中timer-idle-list。
timer-list
timer-idle-list