Hi,
the bundled Emacs Macros seem to be generally broken. I tried some of them and I got exceptions, no effects and even jEdit hanging. Tested without any plugins loaded. May be they should be unbundled?
For me, this is true for jEdit 5.6 and 5,7.
System: Eclipse Adoptium JRE 21.0.4+7-LTS, Windows 11 Pro 23H2
I posted a patch that should fix these macros: https://sourceforge.net/p/jedit/patches/642/.