From: Roland McGrath Date: Thu, 14 Mar 1996 15:32:38 +0000 (+0000) Subject: (compilation-find-buffer): Only choose compilation-last-buffer if it is X-Git-Tag: emacs-19.34~1053 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=95d219b53e0840982ab55df5f1ee875de7bb3ca2;p=emacs.git (compilation-find-buffer): Only choose compilation-last-buffer if it is compilation-buffer-p. --- 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