previous-line-or-history-element

previous-line-or-history-element is an interactive compiled Lisp function in `simple.el'.


(previous-line-or-history-element &optional ARG)

Move cursor vertically up ARG lines, or to the previous history element.
When point moves over the top line of multi-line minibuffer, puts ARGth
previous element of the minibuffer history in the minibuffer.