Function: eshell-smart-maybe-jump-to-end
eshell-smart-maybe-jump-to-end is a byte-compiled function defined in
em-smart.el.gz.
Signature
(eshell-smart-maybe-jump-to-end)
Documentation
Jump to the end of the input buffer.
This is done whenever a command exits successfully and both the command and the end of the buffer are still visible.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-smart.el.gz
(defun eshell-smart-maybe-jump-to-end ()
"Jump to the end of the input buffer.
This is done whenever a command exits successfully and both the command
and the end of the buffer are still visible."
(when (and (= eshell-last-command-status 0)
(if (eq eshell-review-quick-commands 'not-even-short-output)
(and (pos-visible-in-window-p (point-max))
(pos-visible-in-window-p eshell-last-input-start))
(= (count-lines eshell-last-input-end
eshell-last-output-end) 0)))
(goto-char (point-max))
(remove-hook 'pre-command-hook 'eshell-smart-display-move t)))