Function: comint-show-output
comint-show-output is an interactive and byte-compiled function
defined in comint.el.gz.
Signature
(comint-show-output)
Documentation
Display start of this batch of interpreter output at top of window.
Sets mark to the value of point when this command is run.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-show-output ()
"Display start of this batch of interpreter output at top of window.
Sets mark to the value of point when this command is run."
(interactive nil comint-mode)
(push-mark)
(let ((pos (or (marker-position comint-last-input-end) (point-max))))
(cond (comint-use-prompt-regexp
(goto-char pos)
(beginning-of-line 0)
(set-window-start (selected-window) (point))
(comint-skip-prompt))
(t
(goto-char (field-beginning pos))
(set-window-start (selected-window) (point))))))