(compile-mouse-goto-error, compile-goto-error): Turn caadr into caar of cdr.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Oct 2001 16:57:15 +0000 (16:57 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Oct 2001 16:57:15 +0000 (16:57 +0000)
lisp/ChangeLog
lisp/progmodes/compile.el

index 5c67ee0..86e501c 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-23  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * progmodes/compile.el (compile-mouse-goto-error, compile-goto-error):
+       Turn caadr into caar of cdr.
+
 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
 
        * info.el (Info-fontify-node): Bind doun-mouse-{1,2} instead
index 9faba00..f520d86 100644 (file)
@@ -1424,7 +1424,7 @@ at the end of the line."
                         ;; belongs to the first.  Especially since this
                         ;; in-between text might be other errors on the same
                         ;; line (see compilation-skip-to-next-location).
-                        (>= (point) (caadr compilation-error-list)))))
+                        (>= (point) (caar (cdr compilation-error-list))))))
       (setq compilation-error-list (cdr compilation-error-list)))
     (or compilation-error-list
        (error "No error to go to")))
@@ -1457,7 +1457,7 @@ other kinds of prefix arguments are ignored."
              (or (null (marker-buffer (caar compilation-error-list)))
                  (and (> (point) (caar compilation-error-list))
                       (cdr compilation-error-list)
-                      (>= (point) (caadr compilation-error-list)))))
+                      (>= (point) (caar (cdr compilation-error-list))))))
     (setq compilation-error-list (cdr compilation-error-list)))
 
   (push-mark)