From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sleep-for documentation and how to pause reliably Date: Sat, 16 Feb 2013 10:40:58 +0200 Message-ID: <83bobkslb9.fsf@gnu.org> References: <83mwv6szif.fsf@gnu.org> <878v6pj2vk.fsf@gmail.com> <83haldu342.fsf@gnu.org> <87r4khgvrf.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1361004062 24875 80.91.229.3 (16 Feb 2013 08:41:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2013 08:41:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 09:41:24 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6dKm-0002sN-Ck for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2013 09:41:24 +0100 Original-Received: from localhost ([::1]:49506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6dKQ-00005f-Mb for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2013 03:41:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6dKN-00005M-UX for emacs-devel@gnu.org; Sat, 16 Feb 2013 03:41:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6dKM-0002dg-Pe for emacs-devel@gnu.org; Sat, 16 Feb 2013 03:40:59 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:35362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6dKM-0002dM-GZ for emacs-devel@gnu.org; Sat, 16 Feb 2013 03:40:58 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MIB00L001BM1C00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 16 Feb 2013 10:40:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MIB00K9Y1G8XG30@a-mtaout22.012.net.il>; Sat, 16 Feb 2013 10:40:57 +0200 (IST) In-reply-to: <87r4khgvrf.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157074 Archived-At: > From: Thierry Volpiatto > Cc: emacs-devel@gnu.org > 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.