From 95d219b53e0840982ab55df5f1ee875de7bb3ca2 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 14 Mar 1996 15:32:38 +0000 Subject: [PATCH] (compilation-find-buffer): Only choose compilation-last-buffer if it is compilation-buffer-p. --- lisp/progmodes/compile.el | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2