diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-09-22 12:15:52 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-09-22 12:15:52 -0400 |
commit | 72258fe58401a16ab2ff671601c6d6068eb8b799 (patch) | |
tree | ebeff5690f1240a024e02ad42c7bb6fea1001570 /lisp/shell.el | |
parent | 8f0985161467a7018ba08ccf7c9f37cc7fc3edfe (diff) | |
download | emacs-72258fe58401a16ab2ff671601c6d6068eb8b799.tar.gz |
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
Diffstat (limited to 'lisp/shell.el')
-rw-r--r-- | lisp/shell.el | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |