changeset 14807:db1942b2425e

(compilation-find-buffer): Only choose compilation-last-buffer if it is compilation-buffer-p.
author Roland McGrath <roland@gnu.org>
date Thu, 14 Mar 1996 15:32:38 +0000
parents 232b90ad50e8
children b9483b592728
files lisp/progmodes/compile.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Thu Mar 14 05:20:44 1996 +0000
+++ b/lisp/progmodes/compile.el	Thu Mar 14 15:32:38 1996 +0000
@@ -913,6 +913,7 @@
       ;; 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