From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?U8O4cmVuIFBpbGfDpXJk?= Newsgroups: gmane.emacs.devel Subject: Re: How about making `sleep-for' interactive? Date: Thu, 27 Jun 2019 15:32:35 +0200 Message-ID: References: <87v9wrwsde.fsf@mbork.pl> <87k1d7wjhh.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="248465"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 27 15:34:32 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgUXo-0012Wp-9y for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2019 15:34:32 +0200 Original-Received: from localhost ([::1]:50790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgUXm-0007eS-Gh for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2019 09:34:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35994) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgUWF-0007dZ-KY for emacs-devel@gnu.org; Thu, 27 Jun 2019 09:32:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgUWE-0000wi-C7 for emacs-devel@gnu.org; Thu, 27 Jun 2019 09:32:55 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:43947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgUWE-0000oc-5h for emacs-devel@gnu.org; Thu, 27 Jun 2019 09:32:54 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id e3so7065826edr.10 for ; Thu, 27 Jun 2019 06:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zX44EzZFs0/s4ncFHFGXu8Od1A6u6ncUIV7ARvHu6cI=; b=WZTM8wuEf0AX0r3Y3PwgmN+5eJi4RnmNtFiznLm1Pfm4pzXwmFJNsF0V/6kRoiyErq oMHR0JTxkBn7wXjtFNM7kCr0jz8WrOHHjPFWMQTqVYje0xNkXirNgunctwHuDPgeJVPg RGcH3l9NtW7CBH/W7yhlW1uBZgSDxRx/9GeUyYWMud4UxxcUEFkqEmlBWpqkfgSlPKL9 JEarAlcVmgegfkxNqHseTtym9EuJcYedMFRDZaJwgevIbpxnePC6E9LuyDARiGYN89C9 bTR4JkURDURZtiozTvhUuafzOAGwXj+2wF4yhcwV2MX4XXS+vBjzR3NkZWiXJ/F2q9P4 DYLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zX44EzZFs0/s4ncFHFGXu8Od1A6u6ncUIV7ARvHu6cI=; b=Dou3m31y1XUtYQRry8HcaZRcxSFdYjZoMBrIKBHhUJwJBLLgQ/W72XuHODJd4P4fsv tpWX6O5Li2Yildtpq23F/Xtx9C2NHqd37ZtCdRHpNPM29czfYZuYPc3yGzBuvDkPGles wDveSxrrywTM8OnArXkBmOm0NbN8foKpc3dDa9hhy8YoNUjJpC2lEsQPmT12AKuxttNc AdH2U+C+r69vhGzzaUyV2/u2MLZALabBh4toUuRn8XDvyh9YAzwcmjiS359JtTFFs2g8 ngAunaFF9tPG+pCWtI2mj6PPGIxbdgQ1HiboxQcNPr/sTL4BAw2fmcqFQh5U0poaSoBA olQg== X-Gm-Message-State: APjAAAWYmhGuMJyzFFVpQwKYNWHNHI0fUHgdBVMLGBb1e8VSRrePM7sw OaqAeXSiDV+32ELa3OByj8T5fgsV8MtLlntmljM= X-Google-Smtp-Source: APXvYqxpVblWfG95bbfYpKOKWeSVzI1yp6WMCoF9/dHIXozIYj8axa1kvcrbJb7R3DAxsiVYgvnpVHLLTkBIFtvNliY= X-Received: by 2002:a17:906:f85:: with SMTP id q5mr1935275ejj.192.1561642366178; Thu, 27 Jun 2019 06:32:46 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:238194 Archived-At: On Thu, Jun 27, 2019 at 3:22 PM Stefan Monnier wrote: > > > Good points. In addition to that, I discovered that screen is not > > updated during macro execution, so my solution would have to involve > > updating the display. > > The screen updating is not disabled during kbd-macro execution. > What happens is that the screen is only updated when Emacs is "idle". > > Notice that `sleep-for` says: > > Pause, without updating display, for SECONDS seconds. > > But you can use `sit-for` instead, which does update the display (by > default). > > Would it make sense the sleep-for help text to mention sit-for?