I have a non-interactive function
F to do post processing after each command.
F is buffer locally hooked to
F is hooked the prefix argument is eaten and the next command does not get it.
How can I preserve the prefix argument when hooking a function to
EDIT: There is no issue with the prefix argument and the function
F being hooked as the selected answer shows.
My issue was that the function (let's call it
A) that did not worked properly could be either called directly (which had a working behavior) or called from a
push-button (in this case the prefix argument was not passed to