From 667aec946d0e2f3274654e31d8e92431d519b81a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 1 Feb 1999 10:38:08 +0000 Subject: [PATCH] (compilation-next-error-locus): Don't decrease argument FIND-AT-LEAST of compilation-next-error-locus. --- lisp/progmodes/compile.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.2