]> code.delx.au - gnu-emacs/commitdiff
(compilation-find-buffer): Only choose compilation-last-buffer if it is
authorRoland McGrath <roland@gnu.org>
Thu, 14 Mar 1996 15:32:38 +0000 (15:32 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 14 Mar 1996 15:32:38 +0000 (15:32 +0000)
compilation-buffer-p.

lisp/progmodes/compile.el

index 13aad9173ae49cbdf00a031e3abe56999ee44f9f..552bff20c99864e7bd4613edabce01c0d49db6f0 100644 (file)
@@ -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