Ethan Blanton on Nostr: OK #Emacs people, time to #AskFedi about an #elisp API thing: I'm running async ...
OK #Emacs people, time to #AskFedi about an #elisp API thing:
I'm running async external processes, and I want to trigger callbacks when they finish (successful or otherwise). I'm currently using process sentinels, but ... this interface is terrible! The process result is a string that _isn't even well-defined?_ Surely there has to be a better way!
What is that better way? (I see that eshell uses those same strings, so I'm not hopeful...)
Published at
2026-01-05 15:35:50 UTCEvent JSON
{
"id": "015a4cba9d3ce1fb459e0147c1b5454388cb0e60c44f15bd3f4b4f05909d04d7",
"pubkey": "ced8854413eb31949434fdf2005cdd22937a4b12e2699cec34799e8f5710ec89",
"created_at": 1767627350,
"kind": 1,
"tags": [
[
"t",
"emacs"
],
[
"proxy",
"https://social.sdf.org/@elb/114889457430507797",
"web"
],
[
"t",
"askfedi"
],
[
"t",
"elisp"
],
[
"proxy",
"https://social.sdf.org/users/elb/statuses/114889457430507797",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://social.sdf.org/users/elb/statuses/114889457430507797",
"pink.momostr"
],
[
"-"
]
],
"content": "OK #Emacs people, time to #AskFedi about an #elisp API thing:\n\nI'm running async external processes, and I want to trigger callbacks when they finish (successful or otherwise). I'm currently using process sentinels, but ... this interface is terrible! The process result is a string that _isn't even well-defined?_ Surely there has to be a better way!\n\nWhat is that better way? (I see that eshell uses those same strings, so I'm not hopeful...)",
"sig": "949e800e9399b31404ae151de2448db5c3506908219f47287d4192cf322eb365ba0c2cd00862f33240e526618dd1fa4f44a153d24f237826ebc8e6e682e70b19"
}