Bob <bob@bob.org> writes:
When I type meta-x shell, I get a split screen with a shell in the
new buffer.
In 24, the shell started in the current buffer. I don't like the
"new" behavior because it screws up my buffers. I have the screen
split in a few different ways and have all the content I want where I
want it.
I don't want the shell buffer to wind up anywhere except where I
enter meta-x shell.
Can somebody please explain how to restore the original (previous)
behavior?
Bob <bob@bob.org> writes:
[...]
[...]
First of all, I believe you've meant "window" in the above, not
"buffer." Then, the behavior you observe is implemented by a call
to pop-to-buffer from M-x shell, which has an ACTION argument:
(setq display-buffer-alist
'(("^\\*shell\\*$" display-buffer-same-window)))
(setq display-buffer-alist
'(("^\\*shell\\*$" display-buffer-same-window)))
Thanks! It works. I have no idea if I would ever have figured it out by myself.
Bob <bob@bob.org> writes:
(setq display-buffer-alist
'(("^\\*shell\\*$" display-buffer-same-window)))
Thanks! It works. I have no idea if I would ever have figured it out by
myself.
User visible changes in the defaults usually come with documentation in
the NEWS file (try C-h n) telling you how to get back to the old
behavior.
If you search for "shell", you will find this:
** Shell
When you invoke 'shell' interactively, the '*shell*' buffer will now
display in a new window. However, you can customize this behavior via
the 'display-buffer-alist' variable. For example, to get
the old behavior -- '*shell*' buffer displays in current window -- use
(add-to-list 'display-buffer-alist
'("^\\*shell\\*$" . (display-buffer-same-window))).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 406 |
Nodes: | 16 (2 / 14) |
Uptime: | 112:16:56 |
Calls: | 8,529 |
Calls today: | 8 |
Files: | 13,210 |
Messages: | 5,920,617 |