Function: comint-adjust-window-point
comint-adjust-window-point is a byte-compiled function defined in
comint.el.gz.
Signature
(comint-adjust-window-point WINDOW PROCESS)
Documentation
Move point in WINDOW based on Comint settings.
For point adjustment use the process-mark of PROCESS.
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-adjust-window-point (window process)
"Move point in WINDOW based on Comint settings.
For point adjustment use the process-mark of PROCESS."
(and (< (window-point window) (process-mark process))
(or (memq comint-move-point-for-output '(t all))
;; Maybe user wants point to jump to end.
(eq comint-move-point-for-output
(if (eq (selected-window) window) 'this 'others))
;; If point was at the end, keep it at end.
(and (marker-position comint-last-output-start)
(>= (window-point window) comint-last-output-start)))
(set-window-point window (process-mark process))))