Mercurial > emacs
changeset 16250:aaa0ecdc4772
(gud-display-line): Don't call display-buffer
if buffer already has a window.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 20 Sep 1996 18:56:36 +0000 |
parents | 8b6e34dbb961 |
children | ec1b1ae37295 |
files | lisp/gud.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/gud.el Fri Sep 20 06:11:20 1996 +0000 +++ b/lisp/gud.el Fri Sep 20 18:56:36 1996 +0000 @@ -1,4 +1,4 @@ -;;; gud.el --- Grand Unified Debugger mode for gdb, sdb, dbx, or xdb under Emacs +;;; gud.el --- Grand Unified Debugger mode for gdb, dbx, etc. under Emacs ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> ;; Maintainer: FSF @@ -1355,7 +1355,8 @@ (or (eq (current-buffer) gud-comint-buffer) (set-buffer gud-comint-buffer)) (gud-find-file true-file))) - (window (and buffer (display-buffer buffer))) + (window (and buffer (or (get-buffer-window buffer) + (display-buffer buffer)))) (pos)) (if buffer (progn