Not that I understand a lot of the codebase of calc or emacs, but let's give it a try...Calc seems to have various tricks related to keyboard macros (e.g., search for "kbd-macro"),Yes, there are a number of hits for "kbd-macro". However as far as I understand, calc relies on emacs' normal keyboard macro functions to record the macro in the first place.so someone who knows Calc should go over thathmm... who would that be?You?
My understanding is that for calc prefix keys, calc relies on the capability to have a single key press be handled as two events: fancy-prefix-other-key triggers the second event by pushing onto unread-command-events via calc-unread-command. Nonetheless during macro definition, the key following the prefix key should only be recorded as a single key press.So, with regard to keyboard macros, is the following change intentional? Having a scratch buffer with (push ?a unread-command-events) the key presses <f3> C-x C-e <f4> resulted in an "a" being inserted, and a keyboard macro being recorded. The behavior before 30a6b1f81412044a was that last-kbd-event was set to "^X^E" and afterwards to "^X^Ea".I see nothing wrong with either behavior.