From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: sleep-for documentation and how to pause reliably Date: Sun, 17 Feb 2013 19:58:13 +0800 Organization: The Church of Emacs Message-ID: <20130217195813.634c3e504b81e6220258f785@gmail.com> References: <83mwv6szif.fsf@gnu.org> <878v6pj2vk.fsf@gmail.com> <83haldu342.fsf@gnu.org> <87r4khgvrf.fsf@gmail.com> <83bobkslb9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361102330 7976 80.91.229.3 (17 Feb 2013 11:58:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2013 11:58:50 +0000 (UTC) Cc: emacs-devel@gnu.org, Thierry Volpiatto To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 12:59:10 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 1U72th-0007nm-F5 for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2013 12:59:09 +0100 Original-Received: from localhost ([::1]:39655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U72tN-00053g-MQ for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2013 06:58:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U72tK-00053Y-8X for emacs-devel@gnu.org; Sun, 17 Feb 2013 06:58:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U72tI-0006rR-H2 for emacs-devel@gnu.org; Sun, 17 Feb 2013 06:58:46 -0500 Original-Received: from mail-pb0-f54.google.com ([209.85.160.54]:37283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U72tG-0006ps-9I; Sun, 17 Feb 2013 06:58:42 -0500 Original-Received: by mail-pb0-f54.google.com with SMTP id rr4so1222191pbb.13 for ; Sun, 17 Feb 2013 03:58:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=O215ZMwUxC1LoYOUp9zplpP+WMV7pcMM80VlBvvM4Ug=; b=qhZo/eewoopxwZT76gQeudlFc35g25c6P9BUgbOlBqkVLUV6VJg6t7F6+dyQrq8cwt m6MGKhnZYbhg/QqB040/DeaTSd/c6QdaMTeCUUW+QQGefKrgi3wgJvfCv13yt808aMJG ZbUycgIlvxSyC7CAVFgqbyZD/JPo7QcrTr0R8Fk1MVmFEEipndcWd0y7qk0ui/Pah8Ne 13F8do1cMaCsJYbyF+pybVnESPegwB/25oJOifRYAXB9Prq91oYM+gw5xxY9zd28eI1O VVicwICBq8XONfwQJsXgItskbL08weNb2mAtSMyV8h8UdyUfKUcfJdfVmJvG6t7pEKAN g7Hg== X-Received: by 10.66.154.134 with SMTP id vo6mr27244978pab.68.1361102320717; Sun, 17 Feb 2013 03:58:40 -0800 (PST) Original-Received: from Emacs ([124.117.94.252]) by mx.google.com with ESMTPS id y9sm100124478paw.1.2013.02.17.03.58.17 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Feb 2013 03:58:39 -0800 (PST) In-Reply-To: <83bobkslb9.fsf@gnu.org> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.54 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:157094 Archived-At: On Sat, 16 Feb 2013 10:40:58 +0200 Eli Zaretskii wrote: > > 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. Just a question: what does "cold cache" mean? I only know that "cache" is a collection of data duplicating original values stored elsewhere. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao