From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: sleep-for does not work as expected - or perhaps my expection is incorrect Date: Tue, 12 Jul 2011 19:44:27 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1310493038 5083 80.91.229.12 (12 Jul 2011 17:50:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 17:50:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: PJ Weisberg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 19:50:34 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qgh6P-00012V-Vu for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 19:50:34 +0200 Original-Received: from localhost ([::1]:58678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgh6O-0005DF-F9 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 13:50:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgh0z-0004Jl-HY for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 13:45:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qgh0v-0005aM-2B for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 13:44:57 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:59806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgh0u-0005aE-Fk for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 13:44:52 -0400 Original-Received: by bwd14 with SMTP id 14so2200193bwd.0 for ; Tue, 12 Jul 2011 10:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=Bdn6N/aQUL+jRJ40TGhgW2noKfJUWZojrwj6Rb9Z20c=; b=ax3BDRnsO7/qPLZtbEshDoGXtfcUg+luwapfi3hOfL+BiTw+7duuU7FH/uD2dXVm6X rGbSqKUwq3OmTcDm0HD7OyFHm2KAHXsF7jsIyVZwcf3gnDDPjb2sy0jD/A6zGT6/saCD vU5K05S0Bn9Oc1CwrpzWKFWKOZJrQdDXlwtEc= Original-Received: by 10.204.57.82 with SMTP id b18mr93249bkh.95.1310492689303; Tue, 12 Jul 2011 10:44:49 -0700 (PDT) Original-Received: by 10.204.23.77 with HTTP; Tue, 12 Jul 2011 10:44:27 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: UGKkk4AWqU1a3AsFrjbEpYUSKt8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81560 Archived-At: On Tue, Jul 12, 2011 at 7:39 PM, PJ Weisberg wrote: > Your function *is* waiting one second before it writes out world--but > Emacs is waiting for your function to finish before it tries to show > any of the changes it's made to the buffer. :-) > (progn (message "Hello")(sleep-for 1)(message "world")) This, for example, clearly shows that emacs is waiting. -- Suvayu Open source is the future. It sets us free.