From 72258fe58401a16ab2ff671601c6d6068eb8b799 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 22 Sep 2011 12:15:52 -0400 Subject: Reintroduce pop-to-buffer-same-window; use it for previous users of same-window-*. * window.el (pop-to-buffer-same-window): New (reinstated) fun. * cmuscheme.el (run-scheme, switch-to-scheme): * cus-edit.el (customize-group, custom-buffer-create) (customize-browse): * info.el (info): * shell.el (shell): * mail/sendmail.el (mail): * progmodes/inf-lisp.el (inferior-lisp): Use it. Fixes: debbugs:9532 --- lisp/shell.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/shell.el') diff --git a/lisp/shell.el b/lisp/shell.el index 8c5781f9333..96c0d27372e 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -652,7 +652,7 @@ Otherwise, one argument `-i' is passed to the shell. ;; The buffer's window must be correctly set when we call comint (so ;; that comint sets the COLUMNS env var properly). - (switch-to-buffer buffer) + (pop-to-buffer-same-window buffer) (unless (comint-check-proc buffer) (let* ((prog (or explicit-shell-file-name (getenv "ESHELL") shell-file-name)) -- cgit v1.2.1