unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Invalid or uninitialized timer
@ 2022-12-03 21:47 Heime
  2022-12-03 21:58 ` Gregory Heytings
  0 siblings, 1 reply; 6+ messages in thread
From: Heime @ 2022-12-03 21:47 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


I am really struggling to get a timer working.  

I have the following, but I get "Invalid or uninitialized timer"


(defun ticker-second (lampkl)
  "TODO."

  (interactive)

  (cond
   ((eq 'blue lampkl)
       (insert (propertize "B"
                  'font-lock-face '(:background "blue"
                                    :foreground "white"))))

   ((eq 'green lampkl)
       (insert (propertize "G"
                  'font-lock-face '(:background "green"
                                    :foreground "white")))))

  (insert " "))


  (run-with-timer 0 4 (ticker-second 'blue))



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

end of thread, other threads:[~2022-12-03 23:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03 21:47 Invalid or uninitialized timer Heime
2022-12-03 21:58 ` Gregory Heytings
2022-12-03 22:27   ` Heime
2022-12-03 22:30     ` Gregory Heytings
2022-12-03 23:14       ` Heime
2022-12-03 23:21         ` Gregory Heytings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).