Function: minibuffer-history-isearch-wrap

minibuffer-history-isearch-wrap is a byte-compiled function defined in simple.el.gz.

Signature

(minibuffer-history-isearch-wrap)

Documentation

Wrap the minibuffer history search when search fails.

Move point to the first history element for a forward search, or to the last history element for a backward search.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun minibuffer-history-isearch-wrap ()
  "Wrap the minibuffer history search when search fails.
Move point to the first history element for a forward search,
or to the last history element for a backward search."
  ;; When `minibuffer-history-isearch-search' fails on reaching the
  ;; beginning/end of the history, wrap the search to the first/last
  ;; minibuffer history element.
  (if isearch-forward
      (goto-history-element (length (minibuffer-history-value)))
    (goto-history-element 0))
  (goto-char (if isearch-forward (minibuffer-prompt-end) (point-max))))