Function: comint-previous-input-string

comint-previous-input-string is a byte-compiled function defined in comint.el.gz.

Signature

(comint-previous-input-string ARG)

Documentation

Return the string ARG places along the input ring.

Moves relative to comint-input-ring-index.

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
      (1- (ring-length comint-input-ring)))))  ; Last elt for backward search

(defun comint-previous-input-string (arg)
  "Return the string ARG places along the input ring.
Moves relative to `comint-input-ring-index'."
  (ring-ref comint-input-ring (if comint-input-ring-index
				  (mod (+ arg comint-input-ring-index)
				       (ring-length comint-input-ring))
				arg)))