Lars Ingebrigtsen writes: > writes: > >> Good idea, attaching a revised patch (which also adds two NEWS entries.) > > Sorry; I forgot all about this. I've now re-read and tested the patch, > and it seems to work fine for me, so I've pushed it to Emacs 28. After some testing, I found out that we can't record kmacros that end with C-g in the minibuffer. For example, trying to record a kmacro like "C-n M-x C-g" will actually record only "C-n". Please consider the attached patch to fix this.