From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: [ shell buffer ] How not to split the current window? Date: Thu, 31 Aug 2017 12:41:12 +0200 Message-ID: <871sns10l3.fsf@drachen> References: <12860bcc-c3ae-e9fe-e7f0-cd22cbbe6e98@laposte.net> <87ziagsg2m.fsf@drachen> <242052cd-7910-39ba-d075-8d11536e84be@laposte.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504177138 12035 195.159.176.226 (31 Aug 2017 10:58:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2017 10:58:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Philippe Chauvat Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 31 12:58:49 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 1dnNBI-0002Fm-WA for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2017 12:58:41 +0200 Original-Received: from localhost ([::1]:54980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnNBP-0000ER-IM for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2017 06:58:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnMuz-0007hI-18 for help-gnu-emacs@gnu.org; Thu, 31 Aug 2017 06:41:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnMuu-0000Nd-6y for help-gnu-emacs@gnu.org; Thu, 31 Aug 2017 06:41:49 -0400 Original-Received: from mout.web.de ([212.227.17.11]:51028) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnMut-0000LN-Tg for help-gnu-emacs@gnu.org; Thu, 31 Aug 2017 06:41:44 -0400 Original-Received: from drachen.dragon ([88.66.71.141]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lp71s-1dHLTs1GDs-00erv9; Thu, 31 Aug 2017 12:41:16 +0200 In-Reply-To: <242052cd-7910-39ba-d075-8d11536e84be@laposte.net> (Philippe Chauvat's message of "Thu, 31 Aug 2017 09:37:39 +0200") X-Provags-ID: V03:K0:7MMZJXiElkTeKi08ERvV1MVdffGdhWly7r14ty+cB/sXq7KdgPZ s5skVZ7vDAOP0PT4RWKIrKi9uVOU2+kBzbb9WDhczzELHqLvoNTSUXnmV+47Cv8m4MR6c5j bnVLG+eAFgsUtQURYNn9Z2BN91+IGABvpSuX1HRDCh/ybjKLXh87KkWh+yD+Mj/68jarCrt ObzVtJI7Hqyiwv17Lo53A== X-UI-Out-Filterresults: notjunk:1;V01:K0:H4kP3s146YU=:nMhO7iMWaW0NcDkYn2ycXe tEUBDC6Q68R+VnBMRyoS7izhOzniehpB2SM/05g2Gllu9t5FTpf3xYCRga50f1dOb2BtslhwG sFtGeJjwaa8F+8ZwgRmMFbdYRo5JcnHsgao2E+DLrt+A+Atw1RXTEes/YmIPMYADoMNAEvzZz hoTHLWQnOP7MxZKN+4Fm4+A2qm3XRwWcD1WdWWur5aMpPaGzNkGHtlVNw83qqAhTzv1uz5kD+ eG1DIiJT/dEwHBxx9w+PL5A3uUskeJwTRIz2/w3v8r1IVYhd9OLu1plCM3v2EN7nQLtI+nMsr LNaDlkjAxJLilYUZpOwUuxThOH/+R6Ac/gdTiHVX4mVnKjExo8lMcpSPBAG5HoHOKxpdRVHgu pjt9Km46dt7Eb+u0Wy9ZJb8Ruu2IhpnQnqyUyzfe3O05trpQI26TDo3gWsSbvY0dyjS/+SqXU /z8nPF7fKpBm0PG4W14cuyEia7MGpzxYQx9nJdEke7wQTYFBe4zB5huJ2Llg2mxkO65BzC12A sxgjhQKjWYasFqhTJuUb0dNt5yadv/m/oBitT29BYSWcIy0WqMPL5PDAHdCBbqA75lptdA5zc JsmJEu6HhE33Fajav2mkpk7mbQMsVkO5JRSxX404ansHnqneKhdVHNtg1uB9Xb8tip7wy/KTh heM6C1yJ+QjL5zR/YvoJBGkBE4nnKuw7exoMG6WvzwmbhwAwYH4hQ+eV2wgO5Q6ysqPrBjrJP MvPzw5Aq17PCP9m+zIE/tAIjTWQyqeoXq99EWa0yrvpLnVywjQt+gj0VJX1++1qEe5fOP5PJ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 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:114150 Archived-At: Philippe Chauvat writes: > M-x shell (redefined) = M-x shell (current version splitting the buffer) > + C-x 1 (making the shell buffer the only one displayed). I would still do that with `display-buffer-alist' (instead of advising the function), e.g. (add-to-list 'display-buffer-alist `("^\\*shell\\*" . (,(defun my-display-shell-buffer-whole-frame (buffer alist) (prog1 (display-buffer-same-window buffer alist) (delete-other-windows)))))) Michael.