Emacs shell command: Change of behavior between versions 24 and 25?
I have been using the Emacs "shell" command for many years. It starts a shell in the current buffer. This seems to be the case up through Emacs 24.
I am now running Emacs 25 (on Linux) and I'm finding that the shell command works differently. It starts (or goes to) the shell in a different buffer, splitting the current window if necessary. Sometimes the shell goes to the current buffer, sometimes to the other buffer (if I'm displaying two buffers).
What gives? How can I have the shell command work the way it used to?
shell emacs buffer
add a comment |
I have been using the Emacs "shell" command for many years. It starts a shell in the current buffer. This seems to be the case up through Emacs 24.
I am now running Emacs 25 (on Linux) and I'm finding that the shell command works differently. It starts (or goes to) the shell in a different buffer, splitting the current window if necessary. Sometimes the shell goes to the current buffer, sometimes to the other buffer (if I'm displaying two buffers).
What gives? How can I have the shell command work the way it used to?
shell emacs buffer
You should probably ask this question on the emacs site.
– meuh
Jan 28 at 16:30
add a comment |
I have been using the Emacs "shell" command for many years. It starts a shell in the current buffer. This seems to be the case up through Emacs 24.
I am now running Emacs 25 (on Linux) and I'm finding that the shell command works differently. It starts (or goes to) the shell in a different buffer, splitting the current window if necessary. Sometimes the shell goes to the current buffer, sometimes to the other buffer (if I'm displaying two buffers).
What gives? How can I have the shell command work the way it used to?
shell emacs buffer
I have been using the Emacs "shell" command for many years. It starts a shell in the current buffer. This seems to be the case up through Emacs 24.
I am now running Emacs 25 (on Linux) and I'm finding that the shell command works differently. It starts (or goes to) the shell in a different buffer, splitting the current window if necessary. Sometimes the shell goes to the current buffer, sometimes to the other buffer (if I'm displaying two buffers).
What gives? How can I have the shell command work the way it used to?
shell emacs buffer
shell emacs buffer
asked Jan 28 at 2:49
Jack OrensteinJack Orenstein
132
132
You should probably ask this question on the emacs site.
– meuh
Jan 28 at 16:30
add a comment |
You should probably ask this question on the emacs site.
– meuh
Jan 28 at 16:30
You should probably ask this question on the emacs site.
– meuh
Jan 28 at 16:30
You should probably ask this question on the emacs site.
– meuh
Jan 28 at 16:30
add a comment |
1 Answer
1
active
oldest
votes
Yes, this was a change in Emacs 25. The solution is given in the NEWS file; add to your .emacs
file:
;; display shell in the current window
(add-to-list 'display-buffer-alist
'("^\*shell\*$" . (display-buffer-same-window)))
Happy to have helped. Please consider hitting the check mark to accept the answer.
– varro
Jan 28 at 20:42
NEWS (view-emacs-news
) is onC-h n
.
– Drew
Jan 31 at 23:17
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399095%2femacs-shell-command-change-of-behavior-between-versions-24-and-25%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes, this was a change in Emacs 25. The solution is given in the NEWS file; add to your .emacs
file:
;; display shell in the current window
(add-to-list 'display-buffer-alist
'("^\*shell\*$" . (display-buffer-same-window)))
Happy to have helped. Please consider hitting the check mark to accept the answer.
– varro
Jan 28 at 20:42
NEWS (view-emacs-news
) is onC-h n
.
– Drew
Jan 31 at 23:17
add a comment |
Yes, this was a change in Emacs 25. The solution is given in the NEWS file; add to your .emacs
file:
;; display shell in the current window
(add-to-list 'display-buffer-alist
'("^\*shell\*$" . (display-buffer-same-window)))
Happy to have helped. Please consider hitting the check mark to accept the answer.
– varro
Jan 28 at 20:42
NEWS (view-emacs-news
) is onC-h n
.
– Drew
Jan 31 at 23:17
add a comment |
Yes, this was a change in Emacs 25. The solution is given in the NEWS file; add to your .emacs
file:
;; display shell in the current window
(add-to-list 'display-buffer-alist
'("^\*shell\*$" . (display-buffer-same-window)))
Yes, this was a change in Emacs 25. The solution is given in the NEWS file; add to your .emacs
file:
;; display shell in the current window
(add-to-list 'display-buffer-alist
'("^\*shell\*$" . (display-buffer-same-window)))
answered Jan 28 at 18:10
varrovarro
179114
179114
Happy to have helped. Please consider hitting the check mark to accept the answer.
– varro
Jan 28 at 20:42
NEWS (view-emacs-news
) is onC-h n
.
– Drew
Jan 31 at 23:17
add a comment |
Happy to have helped. Please consider hitting the check mark to accept the answer.
– varro
Jan 28 at 20:42
NEWS (view-emacs-news
) is onC-h n
.
– Drew
Jan 31 at 23:17
Happy to have helped. Please consider hitting the check mark to accept the answer.
– varro
Jan 28 at 20:42
Happy to have helped. Please consider hitting the check mark to accept the answer.
– varro
Jan 28 at 20:42
NEWS (
view-emacs-news
) is on C-h n
.– Drew
Jan 31 at 23:17
NEWS (
view-emacs-news
) is on C-h n
.– Drew
Jan 31 at 23:17
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399095%2femacs-shell-command-change-of-behavior-between-versions-24-and-25%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should probably ask this question on the emacs site.
– meuh
Jan 28 at 16:30