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