From: Perry Smith <pedzsan@gmail.com>
To: "Štěpán Němec" <stepnem@gmail.com>
Cc: help-gnu-emacs List <help-gnu-emacs@gnu.org>
Subject: Re: waiting for asynchronous processes
Date: Sat, 15 Oct 2011 20:49:51 -0500 [thread overview]
Message-ID: <C6B5DB73-BCE7-4A47-902A-31A9ABE08360@gmail.com> (raw)
In-Reply-To: <87d3dxzqgl.fsf@gmail.com>
On Oct 15, 2011, at 8:15 PM, Štěpán Němec wrote:
> On Sun, 16 Oct 2011 02:17:03 +0200
> Perry Smith wrote:
>
>> Well, as I said, what I really wanted to use is "grep" (the built in emacs function).
>> I assumed I couldn't reach in and change him from asynchronous to synchronous -- can I?
>
> I don't think you can, indeed. `grep' uses `compilation-start', which
> only starts a synchronous process when asynchronous processes are not
> available.
>
> Depending on what exactly it is you're after, it might be better to just
> define your own command, or try to modify the sentinel of the grep
> process (the `grep' command returns the compilation buffer; you can get
> at the associated process and its sentinel using the usual functions),
> which, when done cleanly, would actually require defining another
> command, too.
>
> Looking at `compilation-handle-exit', even the default sentinel provides
> several hooks for customising what happens when the process finishes,
> namely `compilation-exit-message-function' and
> `compilation-finish-function(s)', so just using (one of) these variables
> might be sufficient for your needs.
Thanks.
One more question, not sure how to ask it.
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?
Thanks
pedz
next prev parent reply other threads:[~2011-10-16 1:49 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 [this message]
2011-10-16 9:16 ` Štěpán Němec
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C6B5DB73-BCE7-4A47-902A-31A9ABE08360@gmail.com \
--to=pedzsan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=stepnem@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.