diff options
| author | Richard M. Stallman | 1994-05-19 21:50:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-19 21:50:30 +0000 |
| commit | e89a7d771b61197e1d0a1fb70a940218fb7652d9 (patch) | |
| tree | 6618f1265b4284e3dedc5c838c7232d1a5ba1e1b | |
| parent | 5844e1c4096e7e5359b375682caa282263895ba3 (diff) | |
| download | emacs-e89a7d771b61197e1d0a1fb70a940218fb7652d9.tar.gz emacs-e89a7d771b61197e1d0a1fb70a940218fb7652d9.zip | |
(compilation-goto-locus): Handle case where *compilation*
is in a dedicated window.
| -rw-r--r-- | lisp/progmodes/compile.el | 5 |
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'. |
| 956 | Takes one argument, a cons (ERROR . SOURCE) of two markers. | 956 | Takes one argument, a cons (ERROR . SOURCE) of two markers. |
| 957 | Selects a window with point at SOURCE, with another window displaying ERROR." | 957 | Selects 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. |