unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Printing with timer
Date: Sat, 03 Dec 2022 05:13:21 +0000	[thread overview]
Message-ID: <8mlMaiDez2o6hF-zMxQ1G1HeLhwvj6_ZHCKEDHpn4sr7uPRc1EHNa_Jte6b8VjErUzZqs3Eq-OzznRCuTxGtVPGou3lFcxxH3osbOmEP6wc=@protonmail.com> (raw)

I would like to insert the letter using a timer.  After each interval, the letter "T" is printed.
After four intervals, the characters are cleared, and the printing starts again.

Here X means whitespace

XXXX    ; After time interval t (all columns off)

TXXX    ; After time interval t (one column green)

TTXX    ; After time interval t

TTTX    ; After time interval t

TTTT    ; After time interval t

XXXX    

I have started with the following function.  Quite unsure if I should (and how)
the timer can be stopped.


(defun fire-indicator ()
  "TODO."
  (interactive)
  (insert "T")

(defun fire-clock ()
  "TODO."
  (interactive)

  (let* ( (tr (run-with-timer 3 1 (fire-indicator))) )
    ) )




             reply	other threads:[~2022-12-03  5:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-03  5:13 Heime [this message]
2022-12-04 13:05 ` Printing with timer Jean Louis
2022-12-04 13:17 ` Jean Louis
2022-12-04 17:15   ` Stefan Monnier via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='8mlMaiDez2o6hF-zMxQ1G1HeLhwvj6_ZHCKEDHpn4sr7uPRc1EHNa_Jte6b8VjErUzZqs3Eq-OzznRCuTxGtVPGou3lFcxxH3osbOmEP6wc=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).