]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-next-error-locus): Don't decrease argument FIND-AT-LEAST
authorRichard M. Stallman <rms@gnu.org>
Mon, 1 Feb 1999 10:38:08 +0000 (10:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 1 Feb 1999 10:38:08 +0000 (10:38 +0000)
of compilation-next-error-locus.

lisp/progmodes/compile.el

index bb7b3f2bffa7cc343953b95295e761d5a7e60ffa..87f8cfc5d11ba6811b2d451d7c47f41a75f796d3 100644 (file)
@@ -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