From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 10483@debbugs.gnu.org, haj@posteo.de
Subject: bug#10483: [PATCH] cperl-mode: Avoid endless loop
Date: Fri, 04 Sep 2020 13:59:04 +0200 [thread overview]
Message-ID: <874kodda7r.fsf@gnus.org> (raw)
In-Reply-To: <83r1rhu65d.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Sep 2020 14:34:54 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> But the advantage of a loop is that you can do something while you
> wait. Whereas if you expose waitpid to Lisp, the Lisp program which
> calls it will be parked inside the call, and the entire Emacs session
> will stall. Or what am I missing?
No, I'm not talking about actually implementing waitpid, but just adding
some utility functions for handling multi-processing in a bit more
convenient way. Starting a process and then waiting until it's done
isn't an unusual thing to do, so a wait-for-process function would be
nice (in this instance).
In general, it would be nice if Emacs grew a rich feature set for
synchronisation (thread and process), perhaps based on futures (or
whatever kids these days are using).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-09-04 11:59 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-12 0:02 bug#10483: 24.0.92; cperl-indent-exp hangs Eric Hanchrow
2020-08-31 17:06 ` bug#10483: [PATCH] cperl-mode: Avoid endless loop Harald Jörg
2020-08-31 17:24 ` Eli Zaretskii
2020-08-31 18:08 ` Harald Jörg
2020-08-31 18:49 ` Eli Zaretskii
2020-08-31 21:23 ` Stefan Kangas
2020-09-01 16:12 ` Harald Jörg
2020-09-04 3:17 ` Lars Ingebrigtsen
2020-09-04 7:15 ` Eli Zaretskii
2020-09-04 10:41 ` Lars Ingebrigtsen
2020-09-04 10:51 ` Andreas Schwab
2020-09-04 10:55 ` Lars Ingebrigtsen
2020-09-04 11:36 ` Eli Zaretskii
2020-09-04 12:00 ` Lars Ingebrigtsen
2020-09-04 12:05 ` Andreas Schwab
2020-09-04 11:34 ` Eli Zaretskii
2020-09-04 11:59 ` Lars Ingebrigtsen [this message]
2020-09-04 12:28 ` Eli Zaretskii
2020-09-04 12:36 ` Lars Ingebrigtsen
2020-09-04 12:09 ` Andreas Schwab
2020-10-05 18:30 ` bug#10483: [PATCH] Fix a bogus test introduced by treating (Bug#10483) Harald Jörg
2020-10-06 1:40 ` Lars Ingebrigtsen
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=874kodda7r.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=10483@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=haj@posteo.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).