Function: comint-copy-old-input
comint-copy-old-input is an interactive and byte-compiled function
defined in comint.el.gz.
Signature
(comint-copy-old-input)
Documentation
Insert after prompt old input at point as new input to be edited.
Calls comint-get-old-input to get old input.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-copy-old-input ()
"Insert after prompt old input at point as new input to be edited.
Calls `comint-get-old-input' to get old input."
(interactive nil comint-mode)
(let ((input (funcall comint-get-old-input))
(process (get-buffer-process (current-buffer))))
(if (not process)
(user-error "Current buffer has no process")
(goto-char (process-mark process))
(insert input))))