From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: sleep-for does not work as expected - or perhaps my expection is incorrect Date: Tue, 12 Jul 2011 13:55:56 -0500 Message-ID: References: <4E1C834C.1060407@dogan.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310499440 11497 80.91.229.12 (12 Jul 2011 19:37:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 19:37:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Deniz Dogan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 21:37:16 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 1Qgild-00012S-A7 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 21:37:13 +0200 Original-Received: from localhost ([::1]:58684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgilc-0003Nj-A9 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 15:37:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgi7n-0002hO-PE for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 14:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qgi7l-0002DX-3G for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 14:56:03 -0400 Original-Received: from mail-yi0-f41.google.com ([209.85.218.41]:52138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgi7k-0002DN-Ce for help-gnu-emacs@gnu.org; Tue, 12 Jul 2011 14:56:00 -0400 Original-Received: by yia13 with SMTP id 13so2445552yia.0 for ; Tue, 12 Jul 2011 11:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=iz4KoEn9w9Hspvt8S8EmBX0A9bHpAIUVgi/RE7sQwFk=; b=O1ziKPiP47UBR/Z8axD8QTnhD/tBlKy9wptq/ua0T7VZV+ut+gZ1PzxD2tYinQUNVa WFTpXcjLqqtBkvkMFSvtXockHWi+OzAvw2BAU8Nzit90RDXOKf7rTaX8slDBZ0UQ6Gf0 Hr5JhMLpujNOY9kxWRzmfgmBOtWsTtIfPivCQ= Original-Received: by 10.236.125.166 with SMTP id z26mr435418yhh.259.1310496958458; Tue, 12 Jul 2011 11:55:58 -0700 (PDT) Original-Received: from magicbook-009041100053.austin.ibm.com ([32.97.110.54]) by mx.google.com with ESMTPS id e24sm10366537yhk.9.2011.07.12.11.55.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jul 2011 11:55:57 -0700 (PDT) In-Reply-To: <4E1C834C.1060407@dogan.se> X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.218.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:81562 Archived-At: On Jul 12, 2011, at 12:24 PM, Deniz Dogan wrote: > On 2011-07-12 16:42, C K Kashyap wrote: >> (defun somefun () >> (insert "Hello ") >> (sleep-for 1) >> (insert "world\n")) >=20 > The docstring for `sleep-for' says: "Pause, without updating display, = for SECONDS seconds." >=20 > Throw a (redisplay t) after the first insertion and it should work. I'm use to 'sit-for' ... i.e. (defun somefun () (insert "Hello ") (sit-for 1) (insert "world\n")) With that you see the Hello... one second pause, then world. HTH, pedz