aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1992-07-31 00:08:13 +0000
committerRoland McGrath1992-07-31 00:08:13 +0000
commit643f763f7d8eaeec9d7a86c915fff68e010b4592 (patch)
tree378a6b7aea1683b1c6e4fe3c3bf5968c1eb2f165
parent353b13c3e45535ced2d9bb629bd1b78f010c6c52 (diff)
downloademacs-643f763f7d8eaeec9d7a86c915fff68e010b4592.tar.gz
emacs-643f763f7d8eaeec9d7a86c915fff68e010b4592.zip
*** empty log message ***
-rw-r--r--lisp/progmodes/compile.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 04d05351e6e..c0e781646c9 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -486,10 +486,10 @@ other kinds of prefix arguments are ignored."
486 (compile-reinitialize-errors argp (point)) 486 (compile-reinitialize-errors argp (point))
487 487
488 ;; Move compilation-error-list to the elt of compilation-old-error-list 488 ;; Move compilation-error-list to the elt of compilation-old-error-list
489 ;; whose cadr is the error we want. 489 ;; we want.
490 (setq compilation-error-list compilation-old-error-list) 490 (setq compilation-error-list compilation-old-error-list)
491 (while (and (cdr compilation-error-list) 491 (while (and compilation-error-list
492 (> (point) (car (car (cdr compilation-error-list))))) 492 (> (point) (car (car compilation-error-list))))
493 (setq compilation-error-list (cdr compilation-error-list))) 493 (setq compilation-error-list (cdr compilation-error-list)))
494 494
495 ;; Move to another window, so that next-error's window changes 495 ;; Move to another window, so that next-error's window changes
@@ -501,7 +501,7 @@ other kinds of prefix arguments are ignored."
501 ;; but we didn't want to do that. 501 ;; but we didn't want to do that.
502 (set-buffer compilation-last-buffer))) 502 (set-buffer compilation-last-buffer)))
503 503
504 (next-error 0)) 504 (next-error 1))
505 505
506(defun compilation-buffer-p (buffer) 506(defun compilation-buffer-p (buffer)
507 (assq 'compilation-error-list (buffer-local-variables buffer))) 507 (assq 'compilation-error-list (buffer-local-variables buffer)))
@@ -569,9 +569,8 @@ See variables `compilation-parse-errors-function' and
569 (let (next-errors next-error) 569 (let (next-errors next-error)
570 (save-excursion 570 (save-excursion
571 (set-buffer compilation-last-buffer) 571 (set-buffer compilation-last-buffer)
572 ;; This code used to do something bizarre and incomprehensible. 572 ;; compilation-error-list points to the "current" error.
573 ;; Was there a reason I wrote it like that? --roland 573 (setq next-errors (nthcdr (1- (prefix-numeric-value argp))
574 (setq next-errors (nthcdr (prefix-numeric-value argp)
575 compilation-error-list) 574 compilation-error-list)
576 next-error (car next-errors)) 575 next-error (car next-errors))
577 (while 576 (while