aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-19 21:50:30 +0000
committerRichard M. Stallman1994-05-19 21:50:30 +0000
commite89a7d771b61197e1d0a1fb70a940218fb7652d9 (patch)
tree6618f1265b4284e3dedc5c838c7232d1a5ba1e1b
parent5844e1c4096e7e5359b375682caa282263895ba3 (diff)
downloademacs-e89a7d771b61197e1d0a1fb70a940218fb7652d9.tar.gz
emacs-e89a7d771b61197e1d0a1fb70a940218fb7652d9.zip
(compilation-goto-locus): Handle case where *compilation*
is in a dedicated window.
-rw-r--r--lisp/progmodes/compile.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index ca34beeb670..e9fc213c98b 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -955,7 +955,10 @@ The current buffer should be the desired compilation output buffer."
955 "Jump to an error locus returned by `compilation-next-error-locus'. 955 "Jump to an error locus returned by `compilation-next-error-locus'.
956Takes one argument, a cons (ERROR . SOURCE) of two markers. 956Takes one argument, a cons (ERROR . SOURCE) of two markers.
957Selects a window with point at SOURCE, with another window displaying ERROR." 957Selects a window with point at SOURCE, with another window displaying ERROR."
958 (switch-to-buffer (marker-buffer (cdr next-error))) 958 (if (and (window-dedicated-p (selected-window))
959 (eq (selected-window) (frame-root-window)))
960 (switch-to-buffer-other-frame (marker-buffer (cdr next-error)))
961 (switch-to-buffer (marker-buffer (cdr next-error))))
959 (goto-char (cdr next-error)) 962 (goto-char (cdr next-error))
960 ;; If narrowing got in the way of 963 ;; If narrowing got in the way of
961 ;; going to the right place, widen. 964 ;; going to the right place, widen.