* running code after everything else is finished
@ 2021-01-18 15:07 laszlomail--- via Users list for the GNU Emacs text editor
0 siblings, 0 replies; only message in thread
From: laszlomail--- via Users list for the GNU Emacs text editor @ 2021-01-18 15:07 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
If I'm in the middle of a code and want to schedule some operation when everything
else is finished then is this the way to do it?
(progn
(run-with-timer 0 nil 'message "do this after everything else")
(message "everything else"))
I guess running with delay 0 runs it after the main loop regains control, so it guarantees
it will be run after the rest of the code, right?
Is this the recommended way to do this or is there a better way?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-18 15:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-18 15:07 running code after everything else is finished laszlomail--- via Users list for the GNU Emacs text editor
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).