From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: HASM Newsgroups: gmane.emacs.help Subject: Re: [ shell buffer ] How not to split the current window? Date: Wed, 30 Aug 2017 07:07:26 -0700 Organization: A noiseless patient Spider Message-ID: <87k21lp2sh.fsf@127.0.0.1> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504102273 14365 195.159.176.226 (30 Aug 2017 14:11:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Aug 2017 14:11:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 30 16:11:06 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dn3hP-00023O-HF for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Aug 2017 16:10:31 +0200 Original-Received: from localhost ([::1]:50807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dn3hW-0006Rg-A9 for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Aug 2017 10:10:38 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-Injection-Info: mx02.eternal-september.org; posting-host="17e9192cda9db1721543b456922894df"; logging-data="23855"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gPaKqk9IZwZ5AIManwe9qWfi9fK7BI+8=" Cancel-Lock: sha1:HHFy25vlHNCmdA8gEY9W6UCjoUc= sha1:t/3LKndi0xwv4L+jGerihUaQc3s= Original-Xref: usenet.stanford.edu gnu.emacs.help:220023 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114127 Archived-At: > since a previous update, when using M-x shell, the shell opens in a new > buffer, splitting the window. You could do: (add-hook 'shell-mode-hook 'delete-other-windows) but that will only work the first time that "shell" buffer is created, not if there is one already. For the later case you may need to change the shell defun and add a call to delete-other-windows after the pop-to-buffer (though I didn't test it.) -- HASM