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

Insert into the minibuffer the Nth next element of minibuffer history.

Interactively, N is the prefix numeric argument and defaults to 1. The value N can go beyond the current position in the minibuffer
history, and invoke "future history."

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun next-history-element (n)
  "Insert into the minibuffer the Nth next element of minibuffer history.
Interactively, N is the prefix numeric argument and defaults to 1.
The value N can go beyond the current position in the minibuffer
history,  and invoke \"future history.\""
  (interactive "p")
  (or (zerop n)
      (goto-history-element (- minibuffer-history-position n))))