diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-09-11 14:30:07 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-09-11 14:30:07 -0400 |
commit | 37ac18a341f604b6ebf27af8effc7ef73e2a28ea (patch) | |
tree | 2d66b3afb31deff84e67950478a56a81101f59fd /lisp/progmodes/gud.el | |
parent | d562d7a44cf4abe2ea23ee6fc2982a1e41bc27fb (diff) | |
download | emacs-37ac18a341f604b6ebf27af8effc7ef73e2a28ea.tar.gz emacs-37ac18a341f604b6ebf27af8effc7ef73e2a28ea.tar.bz2 emacs-37ac18a341f604b6ebf27af8effc7ef73e2a28ea.zip |
Change modes that used same-window-* vars to use switch-to-buffer.
* cmuscheme.el (run-scheme, switch-to-scheme):
* ielm.el (ielm):
* shell.el (shell):
* net/rlogin.el (rlogin):
* net/telnet.el (telnet, rsh):
* progmodes/inf-lisp.el (inferior-lisp): Use switch-to-buffer.
* cus-edit.el (customize-group, custom-buffer-create)
(customize-browse, custom-buffer-create-other-window): Use
switch-to-buffer or switch-to-buffer-other-window.
* info.el (info, Info-find-node, Info-revert-find-node, Info-next)
(Info-prev, Info-up, Info-speedbar-goto-node)
(info-display-manual): Use switch-to-buffer.
(Info-speedbar-goto-node): Use switch-to-buffer-other-frame.
* lisp/gnus/message.el (message-pop-to-buffer): Default to switch-to-buffer.
(message-mail-other-window, message-mail-other-frame)
(message-news-other-window, message-news-other-frame): Use
switch-to-buffer-other-frame and switch-to-buffer-other-window instead
of setting buffer display varibles.
* mail/sendmail.el (mail): Use switch-to-buffer.
(mail-recover): Use switch-to-buffer-other-window.
* progmodes/gdb-mi.el (gdb-restore-windows, gdb-setup-windows):
Use switch-to-buffer.
Diffstat (limited to 'lisp/progmodes/gud.el')
-rw-r--r-- | lisp/progmodes/gud.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 534082544b6..25a23fed293 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -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. |