aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2001-10-12 17:43:05 +0000
committerStefan Monnier2001-10-12 17:43:05 +0000
commit8f36a284bc2552ba32bccfa9597194b253eece96 (patch)
tree899a1bdc07668ff2164943daba20c71f9d8815d4
parente5700b527e860accf4a3199144fe53cb0e5011d8 (diff)
downloademacs-8f36a284bc2552ba32bccfa9597194b253eece96.tar.gz
emacs-8f36a284bc2552ba32bccfa9597194b253eece96.zip
(compile-mouse-goto-error, compile-goto-error):
Consider the text between two errors as belonging to the first error. (compilation-goto-locus): Use pop-to-buffer rather than switch-to-buffer-other-frame.
-rw-r--r--lisp/progmodes/compile.el17
1 files changed, 12 insertions, 5 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index b972adea767..da4d398ec22 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1415,7 +1415,13 @@ at the end of the line."
1415 ;; failed to find the relevant file. See 1415 ;; failed to find the relevant file. See
1416 ;; compilation-next-error-locus. 1416 ;; compilation-next-error-locus.
1417 (or (null (marker-buffer (caar compilation-error-list))) 1417 (or (null (marker-buffer (caar compilation-error-list)))
1418 (> (point) (caar compilation-error-list)))) 1418 (and (> (point) (caar compilation-error-list))
1419 (cdr compilation-error-list)
1420 ;; Don't skip too far: the text between two errors
1421 ;; belongs to the first. Especially since this
1422 ;; in-between text might be other errors on the same
1423 ;; line (see compilation-skip-to-next-location).
1424 (>= (point) (caadr compilation-error-list)))))
1419 (setq compilation-error-list (cdr compilation-error-list))) 1425 (setq compilation-error-list (cdr compilation-error-list)))
1420 (or compilation-error-list 1426 (or compilation-error-list
1421 (error "No error to go to"))) 1427 (error "No error to go to")))
@@ -1446,7 +1452,9 @@ other kinds of prefix arguments are ignored."
1446 ;; failed to find the relevant file. See 1452 ;; failed to find the relevant file. See
1447 ;; compilation-next-error-locus. 1453 ;; compilation-next-error-locus.
1448 (or (null (marker-buffer (caar compilation-error-list))) 1454 (or (null (marker-buffer (caar compilation-error-list)))
1449 (> (point) (caar compilation-error-list)))) 1455 (and (> (point) (caar compilation-error-list))
1456 (cdr compilation-error-list)
1457 (>= (point) (caadr compilation-error-list)))))
1450 (setq compilation-error-list (cdr compilation-error-list))) 1458 (setq compilation-error-list (cdr compilation-error-list)))
1451 1459
1452 (push-mark) 1460 (push-mark)
@@ -1701,9 +1709,8 @@ Selects a window with point at SOURCE, with another window displaying ERROR."
1701 ;; display the source in another window. 1709 ;; display the source in another window.
1702 (let ((pop-up-windows t)) 1710 (let ((pop-up-windows t))
1703 (pop-to-buffer (marker-buffer (cdr next-error)))) 1711 (pop-to-buffer (marker-buffer (cdr next-error))))
1704 (if (and (window-dedicated-p (selected-window)) 1712 (if (window-dedicated-p (selected-window))
1705 (eq (selected-window) (frame-root-window))) 1713 (pop-to-buffer (marker-buffer (cdr next-error)))
1706 (switch-to-buffer-other-frame (marker-buffer (cdr next-error)))
1707 (switch-to-buffer (marker-buffer (cdr next-error))))) 1714 (switch-to-buffer (marker-buffer (cdr next-error)))))
1708 (goto-char (cdr next-error)) 1715 (goto-char (cdr next-error))
1709 ;; If narrowing got in the way of 1716 ;; If narrowing got in the way of