summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-03-14 15:32:38 +0000
committerRoland McGrath <roland@gnu.org>1996-03-14 15:32:38 +0000
commit584c3cf57136fbea4e138f6ac01bccd9699ec482 (patch)
tree1dde6f0f2b8c4d6d9ceba9ba32a56ac20f38bb1a
parent5aaf7a92d21aeae6ff9a826dbfd1608e6d79d55c (diff)
downloademacs-584c3cf57136fbea4e138f6ac01bccd9699ec482.tar.gz
(compilation-find-buffer): Only choose compilation-last-buffer if it is
compilation-buffer-p.
-rw-r--r--lisp/progmodes/compile.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 13aad9173ae..552bff20c99 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -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