From: Kaushal Modi <kaushal.modi@gmail.com>
To: Chunyang Xu <mail@xuchunyang.me>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How to post-process the buffer populated by the async `start-process'
Date: Sat, 12 Jan 2019 11:10:00 -0500 [thread overview]
Message-ID: <CAFyQvY2o+Q=gaCkJzhoDCQ6rB3UVYVyT0TEBWHKcCAan-0e42A@mail.gmail.com> (raw)
In-Reply-To: <4191547274729@myt1-8f46c049cd43.qloud-c.yandex.net>
On Sat, Jan 12, 2019 at 1:32 AM <mail@xuchunyang.me> wrote:
>
> Have you tried (info "(elisp) Sentinels")? The info already provides a
> nice example, here is another example:
>
> (set-process-sentinel
> (start-process "sleep" "*sleep*" "sleep" "3")
> (lambda (_process event)
> (when (string= event "finished\n")
> (message "TODO Do something"))))
>
I did not know about Sentinels, and your example is much better than that
in the manual :)
Thanks for your help!
prev parent reply other threads:[~2019-01-12 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-12 3:34 How to post-process the buffer populated by the async `start-process' Kaushal Modi
2019-01-12 6:32 ` mail
2019-01-12 16:10 ` Kaushal Modi [this message]
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='CAFyQvY2o+Q=gaCkJzhoDCQ6rB3UVYVyT0TEBWHKcCAan-0e42A@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=mail@xuchunyang.me \
/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).