Thread on emacs-devel: https://lists.gnu.org/archive/html/emacs-devel/2021-03/msg00817.html Let me know if something is missing, wrong or can be improved in this patch. Regards, Gabriel