emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sleep-for documentation and how to pause reliably


From: Eli Zaretskii
Subject: Re: sleep-for documentation and how to pause reliably
Date: Sat, 16 Feb 2013 10:40:58 +0200

> From: Thierry Volpiatto <address@hidden>
> Cc: address@hidden
> Date: Fri, 15 Feb 2013 21:36:04 +0100
> 
> I tried to run the initial example you sent:
> 
> (progn
>   (setq proc (start-process-shell-command "ls" nil "ls"))
>   (sleep-for 20)
>   (message "hi"))
> 
> and I noticed that the first time I eval the code Emacs wait for 20s as
> expected and on next evaluations it send the message "Hi" immediately
> unless I run `list-processes', wait some seconds and reeval it.

I never see anything close to 20 sec, neither on Windows nor on
GNU/Linux.  The first evaluation takes a little longer (perhaps a
second or two) until I see "hi", but I think this is due to a cold
cache that makes start-process-shell-command slower.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]