+2003-09-01 Kevin Rodgers <ihs_4664@yahoo.com> (tiny change)
+
+ * progmodes/compile.el (previous-error): Accept a prefix
+ argument, similarly to next-error.
+
2003-08-31 Masatake YAMATO <jet@gyve.org>
* pcvs.el (cvs-do-removal): Use = instead of eq to check
(consp argp))))
;;;###autoload (define-key ctl-x-map "`" 'next-error)
-(defun previous-error ()
+(defun previous-error (argp)
"Visit previous compilation error message and corresponding source code.
-This operates on the output from the \\[compile] command."
- (interactive)
- (next-error -1))
+
+A prefix ARGP specifies how many error messages to move;
+negative means move forward to next error messages.
+
+This operates on the output from the \\[compile] and \\[grep] commands."
+ (interactive "P")
+ (next-error (- (prefix-numeric-value argp))))
(defun first-error ()
"Reparse the error message buffer and start at the first error.