Function: next-history-element

Puts next element of the minibuffer history in the minibuffer.
With argument N, it uses the Nth following element.