From: Drew Adams <drew.adams@oracle.com>
To: rswgnu@gmail.com, emacs-devel <emacs-devel@gnu.org>
Subject: RE: Any way to prevent window splits for a window or a major-mode
Date: Fri, 1 Dec 2017 13:57:38 -0800 (PST) [thread overview]
Message-ID: <3a125bdb-70af-499b-8bb6-4659ba43091a@default> (raw)
In-Reply-To: <CA+OMD9j-ahd5iYjRQ=+hbP6nw5n6FLYg-VqzESOCnytuMDWKCA@mail.gmail.com>
> I have looked through the Windows sections of the Elisp
> manual but did not see an option that would do this
> specifically, though I imagine it must be there.
>
> For a window, I would like to be able to mark it so it
> is never split.
>
> For a major mode, I would like to say for any windows
> displaying buffers in this major mode, don't split them.
>
> Is there a simple way to program that?
I'm no expert on this. I just took a look at predicate
`window-splittable-p', and a first impression tells me
that you can set `window-size-fixed' to `t' in a given
buffer/mode to make it unsplittable. But it apparently
applies to all windows showing the buffer, and I see no
way to apply that to a single window.
I see too (in (elisp) `Splitting Windows') that there is
window parameter `split-window', which it seems like
you can use to prevent a given window from being split.
Someone more familiar with this stuff will hopefully
chime in.
next prev parent reply other threads:[~2017-12-01 21:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 21:35 Any way to prevent window splits for a window or a major-mode Robert Weiner
2017-12-01 21:40 ` Eric Abrahamsen
2017-12-01 21:57 ` Drew Adams [this message]
2017-12-02 10:17 ` martin rudalics
2017-12-04 13:44 ` Robert Weiner
2017-12-05 8:53 ` martin rudalics
2017-12-05 17:04 ` Robert Weiner
2017-12-06 8:56 ` martin rudalics
2017-12-06 15:44 ` Robert Weiner
2017-12-07 9:27 ` martin rudalics
-- strict thread matches above, loose matches on Subject: below --
2017-12-05 22:45 Robert Weiner
2017-12-06 8:56 ` martin rudalics
2017-12-06 18:11 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3a125bdb-70af-499b-8bb6-4659ba43091a@default \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=rswgnu@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.