From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Oleg Pykhalov Newsgroups: gmane.emacs.help Subject: Re: [ shell buffer ] How not to split the current window? Date: Wed, 30 Aug 2017 22:38:18 +0300 Message-ID: <87fuc8n8wl.fsf@gmail.com> References: <87k21lp2sh.fsf@127.0.0.1> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504121971 3679 195.159.176.226 (30 Aug 2017 19:39:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Aug 2017 19:39:31 +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 21:39:24 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 1dn8pO-0008CD-8L for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Aug 2017 21:39:06 +0200 Original-Received: from localhost ([::1]:52376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dn8pU-0002u1-U0 for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Aug 2017 15:39:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dn8oj-0002t8-Ty for help-gnu-emacs@gnu.org; Wed, 30 Aug 2017 15:38:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dn8og-0006uY-RP for help-gnu-emacs@gnu.org; Wed, 30 Aug 2017 15:38:25 -0400 Original-Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:33147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dn8og-0006uN-IS for help-gnu-emacs@gnu.org; Wed, 30 Aug 2017 15:38:22 -0400 Original-Received: by mail-lf0-x235.google.com with SMTP id a126so28406262lfa.0 for ; Wed, 30 Aug 2017 12:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=0otMTYi92GuKW3yxF5+Jzj7Lgd6XKYYtUNbvBQcnZm4=; b=CSu4sxd6SvwO/qJ75Wb1yEJyObU9mCkEFk9GnnQY5fMT+6CtwaMgO3vCfKOqgUWp1e WMVADIrt+OzCm+Lc6ma43IaIzqTZfD+A1wS957SIGxHTRWUPjQE/Y2erPaxj+l0Dpt8v Y3OcJeiKncMPc73nWWjJ9fdHCaTRBgkW5o4RQpfwRvDoc2vOQDX5NK3r5IrPLfcW64hT cwqH+VrbkQ8I7ZvEv4FJYZQkPUcjTK9xf0235HGJyHDzNWtrxrptDPMFNd3ts3FGYCNQ 7JguI4cvu67qFFkK2/Ln6Oho7JhJ0Uw0BIDiRUJHFJCC0pT9FSaaADYXOBCzrKkAYWFp 6jHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=0otMTYi92GuKW3yxF5+Jzj7Lgd6XKYYtUNbvBQcnZm4=; b=Rbf+W79675zvItf8jCswKw4M+q/bMeSsuASOjWhqjznxmu3JL1DKZM7h4BiILeN1j3 ys1odlvynBdVhX8LKzTnWxoqHZDYWmuBWPa00+MinQh1BOy44LMDuz+xf6bAoa1ErRK3 BeoYOs9DFdgnlWi50HUCBmdPUpTAiunZslXh4EK2egrbtV3++YC6pKO3X4KsTTo2vmuV WGP4N1OVeGbc/JLIAsUP8ODTVfbyKaniJJuNfInaydMZOgko7LPd0YkY1QiDtQ2kfr3n RUHNNibi5TlAmVG961lUThC4YBra5LFyxl9VBeBFjbJDDdLmiRgg3KGSLjUoK8CBzOFW GmnQ== X-Gm-Message-State: AHPjjUinwHvtNyk3u2LoKc/p8yA1F384k/8eeAW2kqdXIrKRSIGZdX1Z dcqBhkFKit5GOspD X-Received: by 10.25.28.139 with SMTP id c133mr1106358lfc.112.1504121900916; Wed, 30 Aug 2017 12:38:20 -0700 (PDT) Original-Received: from magnolia (95-55-125-81.dynamic.avangarddsl.ru. [95.55.125.81]) by smtp.gmail.com with ESMTPSA id f67sm1068788lfb.86.2017.08.30.12.38.19 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Aug 2017 12:38:20 -0700 (PDT) In-Reply-To: <87k21lp2sh.fsf@127.0.0.1> (hasm@example.invalid's message of "Wed, 30 Aug 2017 07:07:26 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::235 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:114133 Archived-At: HASM writes: >> 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. Also you could make a key binding to (switch-to-buffer "*shell*"). > 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.)