> there should be a standard function for this
Agree.
// And then maybe standard packages from emacs distro should be updated to not hang emacs daemon. Eventually.