Function: previous-error
previous-error is an interactive and byte-compiled function defined in
simple.el.gz.
Signature
(previous-error &optional N)
Documentation
Visit previous next-error message and corresponding source code.
Prefix arg N says how many error messages to move backwards (or forwards, if negative).
This operates on the output from the M-x compile (compile) and M-x grep (grep) commands.
See next-error for the details.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun previous-error (&optional n)
"Visit previous `next-error' message and corresponding source code.
Prefix arg N says how many error messages to move backwards (or
forwards, if negative).
This operates on the output from the \\[compile] and \\[grep] commands.
See `next-error' for the details."
(interactive "p")
(next-error (- (or n 1))))