From: Michael Heerdegen <michael_heerdegen@web.de>
To: Philippe Chauvat <pchauvat@laposte.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: [ shell buffer ] How not to split the current window?
Date: Thu, 31 Aug 2017 12:41:12 +0200 [thread overview]
Message-ID: <871sns10l3.fsf@drachen> (raw)
In-Reply-To: <242052cd-7910-39ba-d075-8d11536e84be@laposte.net> (Philippe Chauvat's message of "Thu, 31 Aug 2017 09:37:39 +0200")
Philippe Chauvat <pchauvat@laposte.net> 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.
next prev parent reply other threads:[~2017-08-31 10:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-30 9:24 [ shell buffer ] How not to split the current window? Philippe Chauvat
2017-08-31 1:04 ` Michael Heerdegen
2017-08-31 7:37 ` Philippe Chauvat
2017-08-31 10:41 ` Michael Heerdegen [this message]
2017-08-31 12:36 ` Philippe Chauvat
[not found] <mailman.14045.1504100225.21957.help-gnu-emacs@gnu.org>
2017-08-30 14:07 ` HASM
2017-08-30 19:38 ` Oleg Pykhalov
[not found] ` <mailman.14066.1504121908.21957.help-gnu-emacs@gnu.org>
2017-08-30 23:23 ` notbob
2017-08-31 0:00 ` John Mastro
[not found] ` <mailman.14080.1504137681.21957.help-gnu-emacs@gnu.org>
2017-08-31 0:04 ` notbob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871sns10l3.fsf@drachen \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=pchauvat@laposte.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).