Function: next-history-element

next-history-element is an interactive and byte-compiled function defined in simple.el.gz.

Signature

(next-history-element N)

Documentation

Puts next element of the minibuffer history in the minibuffer.

With argument N, it uses the Nth following element. The position in the history can go beyond the current position and invoke "future history."

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun next-history-element (n)
  "Puts next element of the minibuffer history in the minibuffer.
With argument N, it uses the Nth following element.  The position
in the history can go beyond the current position and invoke \"future
history.\""
  (interactive "p")
  (or (zerop n)
      (goto-history-element (- minibuffer-history-position n))))