Emacs shell command: Change of behavior between versions 24 and 25?












2















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?










share|improve this question























  • You should probably ask this question on the emacs site.

    – meuh
    Jan 28 at 16:30
















2















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?










share|improve this question























  • You should probably ask this question on the emacs site.

    – meuh
    Jan 28 at 16:30














2












2








2








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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










1 Answer
1






active

oldest

votes


















1














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)))





share|improve this answer
























  • 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











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
});


}
});














draft saved

draft discarded


















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









1














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)))





share|improve this answer
























  • 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
















1














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)))





share|improve this answer
























  • 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














1












1








1







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)))





share|improve this answer













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)))






share|improve this answer












share|improve this answer



share|improve this answer










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 on C-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











  • NEWS (view-emacs-news) is on C-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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa