aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2001-10-23 16:57:15 +0000
committerStefan Monnier2001-10-23 16:57:15 +0000
commit0033146f51ee3ba214a0125c195e24df7d4a5ae1 (patch)
tree3b9903a84e340c50501cec9299a93b5067a2e1b7
parent61fd8d32f4ed8b21af6d23205c44e48ae0245597 (diff)
downloademacs-0033146f51ee3ba214a0125c195e24df7d4a5ae1.tar.gz
emacs-0033146f51ee3ba214a0125c195e24df7d4a5ae1.zip
(compile-mouse-goto-error, compile-goto-error): Turn caadr into caar of cdr.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/compile.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5c67ee080bf..86e501c72a1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-10-23 Stefan Monnier <monnier@cs.yale.edu>
2
3 * progmodes/compile.el (compile-mouse-goto-error, compile-goto-error):
4 Turn caadr into caar of cdr.
5
12001-10-23 Gerd Moellmann <gerd@gnu.org> 62001-10-23 Gerd Moellmann <gerd@gnu.org>
2 7
3 * info.el (Info-fontify-node): Bind doun-mouse-{1,2} instead 8 * info.el (Info-fontify-node): Bind doun-mouse-{1,2} instead
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 9faba001c35..f520d860068 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1424,7 +1424,7 @@ at the end of the line."
1424 ;; belongs to the first. Especially since this 1424 ;; belongs to the first. Especially since this
1425 ;; in-between text might be other errors on the same 1425 ;; in-between text might be other errors on the same
1426 ;; line (see compilation-skip-to-next-location). 1426 ;; line (see compilation-skip-to-next-location).
1427 (>= (point) (caadr compilation-error-list))))) 1427 (>= (point) (caar (cdr compilation-error-list))))))
1428 (setq compilation-error-list (cdr compilation-error-list))) 1428 (setq compilation-error-list (cdr compilation-error-list)))
1429 (or compilation-error-list 1429 (or compilation-error-list
1430 (error "No error to go to"))) 1430 (error "No error to go to")))
@@ -1457,7 +1457,7 @@ other kinds of prefix arguments are ignored."
1457 (or (null (marker-buffer (caar compilation-error-list))) 1457 (or (null (marker-buffer (caar compilation-error-list)))
1458 (and (> (point) (caar compilation-error-list)) 1458 (and (> (point) (caar compilation-error-list))
1459 (cdr compilation-error-list) 1459 (cdr compilation-error-list)
1460 (>= (point) (caadr compilation-error-list))))) 1460 (>= (point) (caar (cdr compilation-error-list))))))
1461 (setq compilation-error-list (cdr compilation-error-list))) 1461 (setq compilation-error-list (cdr compilation-error-list)))
1462 1462
1463 (push-mark) 1463 (push-mark)