From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: How about making `sleep-for' interactive? Date: Thu, 27 Jun 2019 06:43:09 +0200 Message-ID: <87v9wrwsde.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="3310"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 27 06:46:41 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 1hgMIz-0000jv-5K for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2019 06:46:41 +0200 Original-Received: from localhost ([::1]:46298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgMIx-00043v-Kc for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2019 00:46:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51997) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgMHa-00042l-FM for emacs-devel@gnu.org; Thu, 27 Jun 2019 00:45:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgMHX-00076Q-Pi for emacs-devel@gnu.org; Thu, 27 Jun 2019 00:45:14 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:45374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hgMHX-0006vA-IN for emacs-devel@gnu.org; Thu, 27 Jun 2019 00:45:11 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 84004E67C1 for ; Thu, 27 Jun 2019 06:45:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RTlMbervG4ne for ; Thu, 27 Jun 2019 06:45:04 +0200 (CEST) Original-Received: from localhost (188.147.99.36.nat.umts.dynamic.t-mobile.pl [188.147.99.36]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 68B1CE6734 for ; Thu, 27 Jun 2019 06:45:03 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 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:238183 Archived-At: Hi all, I noticed today that `sleep-for' is not an (interactive) command. IMHO it should be - at least I can see a need for it. Here is my use case. I recorded a keyboard macro which edits the text in some way. The macro begins with isearching for something (which may be outside the part of the buffer currently seen) and then changing. Having e.g. a 1-second delay between moving to that part and actually changing it would help spot mistakes. Since `sleep-for' is a builtin, I can't prepare a patch (I don't speak C very well), but if I get a hint I can try (just to learn something new). WDYT? -- Marcin Borkowski http://mbork.pl