diff options
| author | Chong Yidong | 2011-09-22 12:15:52 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-09-22 12:15:52 -0400 |
| commit | 72258fe58401a16ab2ff671601c6d6068eb8b799 (patch) | |
| tree | ebeff5690f1240a024e02ad42c7bb6fea1001570 /lisp/shell.el | |
| parent | 8f0985161467a7018ba08ccf7c9f37cc7fc3edfe (diff) | |
| download | emacs-72258fe58401a16ab2ff671601c6d6068eb8b799.tar.gz emacs-72258fe58401a16ab2ff671601c6d6068eb8b799.zip | |
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. | |||
| 652 | 652 | ||
| 653 | ;; The buffer's window must be correctly set when we call comint (so | 653 | ;; The buffer's window must be correctly set when we call comint (so |
| 654 | ;; that comint sets the COLUMNS env var properly). | 654 | ;; that comint sets the COLUMNS env var properly). |
| 655 | (switch-to-buffer buffer) | 655 | (pop-to-buffer-same-window buffer) |
| 656 | (unless (comint-check-proc buffer) | 656 | (unless (comint-check-proc buffer) |
| 657 | (let* ((prog (or explicit-shell-file-name | 657 | (let* ((prog (or explicit-shell-file-name |
| 658 | (getenv "ESHELL") shell-file-name)) | 658 | (getenv "ESHELL") shell-file-name)) |