From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.help Subject: Re: waiting for asynchronous processes Date: Sun, 16 Oct 2011 11:16:20 +0200 Message-ID: <878volz47v.fsf@gmail.com> References: <87hb39zydn.fsf@gmail.com> <9669B9E0-85E4-4025-9596-FA77C8754E84@gmail.com> <87d3dxzqgl.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1318756932 8555 80.91.229.12 (16 Oct 2011 09:22:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2011 09:22:12 +0000 (UTC) Cc: help-gnu-emacs List To: Perry Smith Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 16 11:22:08 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 1RFMv1-0008Np-HI for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Oct 2011 11:22:07 +0200 Original-Received: from localhost ([::1]:45121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFMv0-0007q4-Fs for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Oct 2011 05:22:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFMuv-0007py-GB for help-gnu-emacs@gnu.org; Sun, 16 Oct 2011 05:22:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFMuu-0005m8-AT for help-gnu-emacs@gnu.org; Sun, 16 Oct 2011 05:22:01 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:65112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFMuu-0005lq-43 for help-gnu-emacs@gnu.org; Sun, 16 Oct 2011 05:22:00 -0400 Original-Received: by bkbzu5 with SMTP id zu5so4915129bkb.0 for ; Sun, 16 Oct 2011 02:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=/tjcBS3CrT5vVz4mCXE/omAgQ+9EB5eZQ+0tG7nUZIk=; b=eO+o1SDPJw950mM01Ca7XWLGQOdxfUYxZBFMc2+rsgGf7vfJDX6TQQ5jP1gUwNK4Za lTlkIZUhoTZNs2gOVCP2RZWS38uG2gWt2GgwH+CSnNKs7F+cmz3+sOsFzbCJtqxN3bVc SPlapVO12YX0P5sBJcOi5oqk632AC0zcUiwgI= Original-Received: by 10.223.1.131 with SMTP id 3mr16607624faf.30.1318756918975; Sun, 16 Oct 2011 02:21:58 -0700 (PDT) Original-Received: from localhost (176.119.broadband10.iol.cz. [90.177.119.176]) by mx.google.com with ESMTPS id c13sm740595fai.3.2011.10.16.02.21.56 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Oct 2011 02:21:57 -0700 (PDT) In-Reply-To: (Perry Smith's message of "Sat, 15 Oct 2011 20:49:51 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) 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:82573 Archived-At: On Sun, 16 Oct 2011 03:49:51 +0200 Perry Smith wrote: > I was hooking this into a keyboard macro so I basically wanted to "do not= hing" > while I waited for the process to complete. What is the proper way to "do > nothing" in emacs? Well, `sleep-for' is quite close to "do nothing" I suppose, but I don't think that's what you want -- you want the process to run and other stuff to happen when the process finishes, so just staring at the screen until then seems a more appropriate "do nothing" implementation here. I also don't think a keyboard macro is suitable for what you're doing. You will at least need to bind some variable(s) around the `grep' invocation, and the only way I can think of to do that with a keyboard macro only would be something like M-:, which would be crazy. Why don't you just define a command and bind it to a key? --=20 =C5=A0t=C4=9Bp=C3=A1n