[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to post-process the buffer populated by the async `start-process
From: |
Kaushal Modi |
Subject: |
Re: How to post-process the buffer populated by the async `start-process' |
Date: |
Sat, 12 Jan 2019 11:10:00 -0500 |
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!