comint-insert-input
comint-insert-input is an interactive compiled Lisp function in `comint.el
'.
(comint-insert-input EVENT)
In a Comint buffer, set the current input to the previous input at point.
If there is no previous input at point, run the command specified
by the global keymap (usually `mouse-yank-at-click').