all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.