diff options
author | Roland McGrath <roland@gnu.org> | 1996-03-14 15:32:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-03-14 15:32:38 +0000 |
commit | 584c3cf57136fbea4e138f6ac01bccd9699ec482 (patch) | |
tree | 1dde6f0f2b8c4d6d9ceba9ba32a56ac20f38bb1a | |
parent | 5aaf7a92d21aeae6ff9a826dbfd1608e6d79d55c (diff) | |
download | emacs-584c3cf57136fbea4e138f6ac01bccd9699ec482.tar.gz |
(compilation-find-buffer): Only choose compilation-last-buffer if it is
compilation-buffer-p.
-rw-r--r-- | lisp/progmodes/compile.el | 1 |
1 files changed, 1 insertions, 0 deletions
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 |