]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/gud.el
Change modes that used same-window-* vars to use switch-to-buffer.
[gnu-emacs] / lisp / progmodes / gud.el
index 534082544b6ebe4a889c3522affcac72e05e900d..25a23fed2931905c12b2b3b1cca4bc74d10cded1 100644 (file)
@@ -2496,7 +2496,7 @@ comint mode, which see."
                      file-subst)))
         (filepart (and file-word (concat "-" (file-name-nondirectory file))))
         (existing-buffer (get-buffer (concat "*gud" filepart "*"))))
-    (pop-to-buffer (concat "*gud" filepart "*"))
+    (switch-to-buffer (concat "*gud" filepart "*"))
     (when (and existing-buffer (get-buffer-process existing-buffer))
       (error "This program is already being debugged"))
     ;; Set the dir, in case the buffer already existed with a different dir.