Commit 95d219b5 authored by Roland McGrath's avatar Roland McGrath
Browse files

(compilation-find-buffer): Only choose compilation-last-buffer if it is

compilation-buffer-p.
parent f694e5d2
......@@ -913,6 +913,7 @@ other kinds of prefix arguments are ignored."
;; The current buffer is a compilation buffer.
(current-buffer)
(if (and compilation-last-buffer (buffer-name compilation-last-buffer)
(compilation-buffer-p compilation-last-buffer)
(or (not other-buffer) (not (eq compilation-last-buffer
(current-buffer)))))
compilation-last-buffer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment