# HG changeset patch # User Roland McGrath # Date 826817558 0 # Node ID db1942b2425e6088bbf3b2edecf2080847c64f6e # Parent 232b90ad50e8e00d5b7b307314de7f358846c42d (compilation-find-buffer): Only choose compilation-last-buffer if it is compilation-buffer-p. diff -r 232b90ad50e8 -r db1942b2425e lisp/progmodes/compile.el --- 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