[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sleep-for does not work as expected - or perhaps my expection is incorre
From: |
C K Kashyap |
Subject: |
sleep-for does not work as expected - or perhaps my expection is incorrect |
Date: |
Tue, 12 Jul 2011 20:12:55 +0530 |
Hi,
(defun somefun ()
(insert "Hello ")
(sleep-for 1)
(insert "world\n"))
When I invoke "somefun" by doign - M-: (somefun) <return>
I see that "Hello world" gets printed after 1 second instead of printing Hello and then printing world after one second.
What can I do to get the script to write out "hello" first and then wait for a second and then write out world?
Regards,
Kashyap
- sleep-for does not work as expected - or perhaps my expection is incorrect,
C K Kashyap <=