[xemacs-base] Make advice work better in keyboard macros