diff options
| author | Richard M. Stallman | 2003-06-04 09:31:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-06-04 09:31:46 +0000 |
| commit | 83b5c8e0e32c9cb8ad14ffb8a8a47a0446e046cb (patch) | |
| tree | 43cb3cd3bf788630ad6d5c3aa30809633ee8b1cd | |
| parent | 880b04211aec558dab4887dbd105f9bd16c0da4f (diff) | |
| download | emacs-83b5c8e0e32c9cb8ad14ffb8a8a47a0446e046cb.tar.gz emacs-83b5c8e0e32c9cb8ad14ffb8a8a47a0446e046cb.zip | |
(compilation-next-error): When moving fwd,
compare position of point with the errors.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6695307260b..648dac8500d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2003-06-04 Richard M. Stallman <rms@gnu.org> | 1 | 2003-06-04 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * progmodes/compile.el (compilation-next-error): When moving fwd, | ||
| 4 | compare position of point with the errors. | ||
| 5 | |||
| 3 | * dired.el (dired-get-filename): Err for . and .. in usual case. | 6 | * dired.el (dired-get-filename): Err for . and .. in usual case. |
| 4 | (dired-get-file-for-visit): Specify no-error to dired-get-filename, | 7 | (dired-get-file-for-visit): Specify no-error to dired-get-filename, |
| 5 | and check for real errors here. | 8 | and check for real errors here. |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f9ce01edd85..eebeedd1710 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1407,7 +1407,18 @@ Does NOT find the source line like \\[next-error]." | |||
| 1407 | (if (> (- n) i) | 1407 | (if (> (- n) i) |
| 1408 | (error "Moved back past first error") | 1408 | (error "Moved back past first error") |
| 1409 | (nth (+ i n) compilation-old-error-list))) | 1409 | (nth (+ i n) compilation-old-error-list))) |
| 1410 | (let ((compilation-error-list (cdr errors))) | 1410 | (save-excursion |
| 1411 | (while (> n 0) | ||
| 1412 | ;; Discard the current error and any previous. | ||
| 1413 | (while (>= (point) (car (car errors))) | ||
| 1414 | (setq errors (cdr errors))) | ||
| 1415 | ;; Now (car errors) is the next error. | ||
| 1416 | ;; If we want to move down more errors, | ||
| 1417 | ;; put point at this one and start again. | ||
| 1418 | (setq n (1- n)) | ||
| 1419 | (if (and errors (> n 0)) | ||
| 1420 | (goto-char (car (car errors)))))) | ||
| 1421 | (let ((compilation-error-list errors)) | ||
| 1411 | (compile-reinitialize-errors nil nil n) | 1422 | (compile-reinitialize-errors nil nil n) |
| 1412 | (if compilation-error-list | 1423 | (if compilation-error-list |
| 1413 | (nth (1- n) compilation-error-list) | 1424 | (nth (1- n) compilation-error-list) |