获取运行的Emacs计时器列表 [英] Getting a list of running Emacs timers

查看:114
本文介绍了获取运行的Emacs计时器列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个计时器,并在Emacs中存储了一个引用。

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))

我通常执行这个elisp在早晨,然后通过执行

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.

推荐答案

计时器似乎存储在 timer-list timer-idle-list 中。

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

这篇关于获取运行的Emacs计时器列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆