summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1999-02-01 10:38:08 +0000
committerRichard M. Stallman <rms@gnu.org>1999-02-01 10:38:08 +0000
commit667aec946d0e2f3274654e31d8e92431d519b81a (patch)
treec7a54ccdfdebc0d077a9358fcab2511c16ccd13f /lisp/progmodes/compile.el
parent8024de4585cccf89b54addf5e045b6830ae3244d (diff)
downloademacs-667aec946d0e2f3274654e31d8e92431d519b81a.tar.gz
(compilation-next-error-locus): Don't decrease argument FIND-AT-LEAST
of compilation-next-error-locus.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el3
1 files changed, 1 insertions, 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