all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why run-with-timer generates so many timers?
@ 2020-07-18  0:54 numbchild
  2020-07-18  2:05 ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: numbchild @ 2020-07-18  0:54 UTC (permalink / raw)
  To: emacs-help

I write an extension rainbow-fart.el (
https://github.com/stardiviner/emacs-rainbow-fart)

Here is the code lines which running timer:
https://github.com/stardiviner/emacs-rainbow-fart/blob/master/rainbow-fart.el#L245

When I run command `list-timers`. I found many timers is generated by
rainbow-fart.el

#+begin_example
275.87      900.0    rainbow-fart--timing-remind
278.20      900.0    rainbow-fart--timing-remind
280.55      900.0    rainbow-fart--timing-remind
280.65      900.0    rainbow-fart--timing-remind
280.66      900.0    rainbow-fart--timing-remind
280.74      900.0    rainbow-fart--timing-remind
280.86      900.0    rainbow-fart--timing-remind
280.94      900.0    rainbow-fart--timing-remind
281.14      900.0    rainbow-fart--timing-remind
281.19      900.0    rainbow-fart--timing-remind
281.21      900.0    rainbow-fart--timing-remind
281.28      900.0    rainbow-fart--timing-remind
281.81      900.0    rainbow-fart--timing-remind
281.89      900.0    rainbow-fart--timing-remind
283.31      900.0    rainbow-fart--timing-remind
283.39      900.0    rainbow-fart--timing-remind
285.49      900.0    rainbow-fart--timing-remind
.....
#+end_example

Is my `run-with-timer` source code wrong? Or did I misunderstand this
function?

Hope experts like you can explain it for me, thanks very much.

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-18  5:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-18  0:54 Why run-with-timer generates so many timers? numbchild
2020-07-18  2:05 ` Michael Heerdegen
2020-07-18  5:54   ` [SOLVED] " numbchild

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.