Function: dired-previous-line

dired-previous-line is an interactive and byte-compiled function defined in dired.el.gz.

Signature

(dired-previous-line ARG)

Documentation

Move up ARG lines, then position at filename.

The argument ARG (interactively, prefix argument) says how many lines to move; the default is one line.

Whether to skip empty lines and how to move from first line is controlled by dired-movement-style.

View in manual

Probably introduced at or before Emacs version 30.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-previous-line (arg)
  "Move up ARG lines, then position at filename.
The argument ARG (interactively, prefix argument) says how many lines
to move; the default is one line.

Whether to skip empty lines and how to move from first line
is controlled by `dired-movement-style'."
  (interactive "^p" dired-mode)
  (dired-next-line (- (or arg 1))))