From: "Štěpán Němec" <stepnem@gmail.com>
To: Perry Smith <pedzsan@gmail.com>
Cc: help-gnu-emacs List <help-gnu-emacs@gnu.org>
Subject: Re: waiting for asynchronous processes
Date: Sun, 16 Oct 2011 11:16:20 +0200 [thread overview]
Message-ID: <878volz47v.fsf@gmail.com> (raw)
In-Reply-To: <C6B5DB73-BCE7-4A47-902A-31A9ABE08360@gmail.com> (Perry Smith's message of "Sat, 15 Oct 2011 20:49:51 -0500")
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 nothing"
> 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?
--
Štěpán
next prev parent reply other threads:[~2011-10-16 9:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-15 17:20 waiting for asynchronous processes Perry Smith
2011-10-15 22:24 ` Štěpán Němec
2011-10-16 0:17 ` Perry Smith
2011-10-16 1:15 ` Štěpán Němec
2011-10-16 1:49 ` Perry Smith
2011-10-16 9:16 ` Štěpán Němec [this message]
2011-10-16 12:49 ` Perry Smith
2011-10-16 9:21 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878volz47v.fsf@gmail.com \
--to=stepnem@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=pedzsan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).