Function: term-get-old-input-default
term-get-old-input-default is a byte-compiled function defined in
term.el.gz.
Signature
(term-get-old-input-default)
Documentation
Default for term-get-old-input.
Take the current line, and discard any initial text matching
term-prompt-regexp.
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-get-old-input-default ()
"Default for `term-get-old-input'.
Take the current line, and discard any initial text matching
`term-prompt-regexp'."
(save-excursion
(beginning-of-line)
(term-skip-prompt)
(let ((beg (point)))
(end-of-line)
(buffer-substring beg (point)))))