The basic question is this: I have a macro, named my_stop_macro, that I have written and bound to a key. When recording a macro, I want my_stop_macro to execute when the key is pressed, but not to show up in the final recorded macro.
That is the "general" question, the actual circumstance is that my macro calls end_recording, which is why it should not show up in the final recorded macro.
To illustrate, I have the macro below bound to ctrl-shift-T. The actual macro does other things, but is simplified for illustrative purposes.
_command void my_stop_macro() name_info(','VSARG2_EDITORCTL)
{
// ... Other code ommited .....
end_recording(false, "");
}
I start recording a macro, do some stuff, then hit ctrl-shift-T. The macro stops recording (as expected), but the macro has a call to my_stop_macro() as the last line, which I do not want.
Any help would be appreciated.