From: Richard M. Stallman Date: Mon, 1 Feb 1999 10:38:08 +0000 (+0000) Subject: (compilation-next-error-locus): Don't decrease argument FIND-AT-LEAST X-Git-Tag: emacs-20.4~710 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=667aec946d0e2f3274654e31d8e92431d519b81a;p=emacs.git (compilation-next-error-locus): Don't decrease argument FIND-AT-LEAST of compilation-next-error-locus. --- diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index bb7b3f2bffa..87f8cfc5d11 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1428,8 +1428,7 @@ nil instead of raising an error if there are no more errors. The current buffer should be the desired compilation output buffer." (or move (setq move 1)) - (compile-reinitialize-errors reparse nil (and (not reparse) - (if (< move 1) 0 (1- move)))) + (compile-reinitialize-errors reparse nil (and (not reparse) (max 0 move))) (let (next-errors next-error) (catch 'no-next-error (save-excursion